This is an old revision of the document!
Bash Scripting Snippets
General Information
Bash scripting references and snippets.
Checklist
- Distro agnostic
Random Numbers
Different ways to generate random numbers.
Random 2 Digit Number
echo ${RANDOM:0:2}
Random number that is a minimum of 1 and max of 100
echo $[ (RANDOM % 100) + 1]