Bash
Resources:
Recommended free resources for beginning users:
- http://linuxcommand.org/writing_shell_scripts.php
- http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Recommended free resources for intermediate users:
Recommended free resources for advanced users:
Quick References:
- http://linuxhelp.blogspot.com/2005/10/10-seconds-guide-to-bash-shell.html
- http://www.panix.com/~elflord/unix/bash-tute.html
- http://bashcurescancer.com/10-steps-to-beautiful-shell-scripts.html
Recommended book for beginning users:
Recommended book for intermediate-advanced users:
- O'REILLY bash Cookbook (I have this book! Highly recommended!)
Notes:
If you are testing an output or variable that may be null it is necessary to include it in double quotes!
if [ -n "$thisvariabledoesnotexist" ]; then
echo "run!"
fi
or
if [ -n "`echo $thisvariabledoesnotexist`" ]; then
echo "run!"
fi
Otherwise, if the variable or output is null then the script will crash!
[http://chris-lamb.co.uk/2008/01/24/can-you-get-cp-to-give-a-progress-bar-like-wget/]
page revision: 10, last edited: 01 Feb 2008 18:47