Skip to content

alexchantastic/lipsum-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

lipsum-shell

A shell script to generate lorem ipsum dummy text.

Installation

  1. Clone or download the repo
  2. Create a symlink from the script to your /usr/local/bin folder
    ln -s $PATH_TO_REPO/lipsum.sh /usr/local/bin/lipsum

Or run the script directly:

sh lipsum.sh

Usage

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

Commands

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

Arguments

Argument Description Default
count Number of structures to generate 1

Options

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

Defaults

Type Option Value
Sentences -m 4
Sentences -M 8
Paragraphs -m 5
Paragraphs -M 10
Paragraphs -w 4
Paragraphs -W 8

License

Code released under the MIT License.