Changes

Bash Shell Script Examples

321 bytes added, 04:38, 14 February 2015
The following lines were added (+) and removed (-):
== Add Pause Prompt In a Shell Script ===== Add Pause Prompt In a Shell Script ====== Require command line parameters ===see example: if [ -z $1 ] || [ -z $2 ] ; then        echo "newuser: too few arguments"        echo "Usage: newuser [username] [uid]"        echo "Adds a new robotz.com customer, for use by admin@robotz.com only." else        useradd -r $1 -d /home/$1 -m -n -u $2 fi
Bureaucrat, administrator
16,192
edits