Skip to content

Script to select 1 or 2 word names from text files. You can allow duplicates or force unique names.

License

Notifications You must be signed in to change notification settings

steppsr/random_name_picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

random_name_picker

Create a list of 1 or 2 word random names.

  • Names may have duplicates unless you use the -u command-line option to force the names to be unique.
  • You must use the -i INTEGER command-line option to tell the script how many names to generate. Also, the script doesn't check for how many unique names are possible, so if you use a number that is larger than the max possible unique names, you will create an endless loop. If this does happen, you'll need to break out the program using the Ctrl-C keyboard shortcut.

Command Usage

USAGE: bash random_name_picker.sh [OPTIONS]

  OPTIONS
   -u          Force names to be unique.
   -i INTEGER  Number of names to create.
   -f1 FILE    File containing first names. File must have one per line and no blank lines.
   -f2 FILE    File containing last names. File must have one per line and no blank lines.
   -h          Help
   -v          Current version & version history.

   Example:
      bash random_name_picker.sh -u -i 10 -f1 firstnames.txt -f2 lastnames.txt

   Example for saving to file:
      bash random_name_picker.sh -u -i 10 -f1 firstnames.txt -f2 lastnames.txt > names_list.txt

Versions

Version 0.1 - Initial version with basic functionality to choose 1 word names, or 2 word names. Name can be unique or allow duplicates.

About

Script to select 1 or 2 word names from text files. You can allow duplicates or force unique names.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages