Skip to content

A random word generator for the linux command line that can generate words or names. It uses dictionary files and does not produce predictable results. The words and names are from international english, and the name file contains both first and last names. The main dictionary file contains aggregated and unique words from multiple dictionaries.

Notifications You must be signed in to change notification settings

LEDparty/bash-rwg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

A small script that randomly generates words from dictionary files using system nanoseconds.

Install

This script does not work with z shell because it uses readarray in order to make the dictionary accesible to the script. In its current form, it's a linux only application for bash interpreters. You can use the chsh command to change your default shell:


git clone https://github.com/LEDparty/bash-rwg
cd bash-rwg
chmod +x rwg.sh

How To Use

Within the bash-rwg folder, executing the command without arguments generates one random word:


./rwg.sh

If you are using z shell as your primary shell, but don't want to change your default settings, you can run this command from the bash-rwg folder you installed:


bash rwg.sh

You can use the -n option to generate a name instead:


./rwg.sh -n

You can generate any number of random words, and the sequence is not predictable:


./rwg.sh 20
./rwg.sh -n 10

About

A random word generator for the linux command line that can generate words or names. It uses dictionary files and does not produce predictable results. The words and names are from international english, and the name file contains both first and last names. The main dictionary file contains aggregated and unique words from multiple dictionaries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages