A shell script to generate lorem ipsum dummy text.
- Clone or download the repo
- Create a symlink from the script to your
/usr/local/bin
folderln -s $PATH_TO_REPO/lipsum.sh /usr/local/bin/lipsum
Or run the script directly:
sh lipsum.sh
lipsum <command> [count] [-m|M|w|W|h|v]
# Generate 10 characters
lipsum characters 10
# Generate 10 words
lipsum words 10
# Generate 10 sentences with 8 to 12 words
lipsum sentences 10 -m 8 -M 12
# Generate 10 paragraphs with 4 to 6 sentences that are 8 to 10 words
lipsum paragraphs 10 -m 4 -M 6 -w 8 -W 10
Command | Description |
---|---|
characters |
Generate characters |
words |
Generated words |
sentences |
Generate sentences |
paragraphs |
Generate paragraphs |
help |
Show help |
version |
Show version |
Structure commands also have the following aliases:
Type | Aliases |
---|---|
Characters | characters , character , char , c |
Words | words , word , w |
Sentences | sentences , sentence , sent , s |
Paragraphs | paragraphs , paragraph , para , p |
Argument | Description | Default |
---|---|---|
count |
Number of structures to generate | 1 |
Name | Description |
---|---|
-m |
Minimum number of structures to generate (applies to sentence and paragraph only) |
-M |
Maximum number of structures to generate (applies to sentence and paragraph only) |
-w |
Minimum number of words to generate per sentence (applies to paragraph only) |
-W |
Maximum number of words to generate per sentence (applies to paragraph only) |
-v |
Print version |
-h |
Print help |
Type | Option | Value |
---|---|---|
Sentences | -m |
4 |
Sentences | -M |
8 |
Paragraphs | -m |
5 |
Paragraphs | -M |
10 |
Paragraphs | -w |
4 |
Paragraphs | -W |
8 |
Code released under the MIT License.