ssh — guest: ~ connected
guest@ludovic.toinel.com:~$ man lorem

lorem — generate lorem ipsum placeholder text

SYNOPSIS

lorem [-s] [count] [words|sentences|paragraphs]

DESCRIPTION

Prints placeholder text made of pseudo-Latin words: one paragraph by default, or the given number of words, sentences or paragraphs. The unit can be shortened (w, s, p) and the two arguments can come in any order. The text is different on every run.

The output is plain text: pipe it or redirect it to a file, e.g. lorem 5 paragraphs > draft.txt.

OPTIONS

-s start with the classic opening "Lorem ipsum dolor sit amet"

Limits: 5000 words, 500 sentences, 100 paragraphs.

HOW IT WORKS

"Lorem ipsum" is the filler text printers and designers have used since the 1500s. It comes from a scrambled passage of Cicero's De finibus bonorum et malorum (45 BC): it looks like real prose — word lengths, rhythm, punctuation — but means nothing, so readers judge the layout instead of reading the content.

Words are drawn at random from a fixed list taken from the traditional passage. A sentence has 6 to 14 words, sometimes with a comma; a paragraph has 4 to 7 sentences. The draw uses your browser's ordinary random generator, which is fine for filler text; nothing is downloaded.

USE CASES

  • fill a page mock-up, a template or a slide before the real copy exists;
  • test how a layout wraps short and long texts (lorem 3 words, lorem 8 p);
  • create a sample file to try other commands: lorem 3 p > sample.txt, then wc sample.txt.

EXAMPLES

lorem lorem 3 paragraphs lorem -s 2 sentences lorem 20 words lorem 5 p | wc -w

SEE ALSO

fortune, wc, asciiart, uuid