Shell Script Exercises
- echotoggle.csh, echotoggle.sh - Using echo for debugging
- array.csh - Arrays
- variables1.csh, variables1.sh - Variable substitution
- variables2.csh, variables2.sh - Variable substitution and quotes
- clargs.csh, clargs.sh - Command Line Arguments
- redir.csh, redir.sh - Output redirection
- bt.csh, bt.sh - Assigning Command Output with Backticks
- math.csh, math.sh - Doing simple math
- if.csh, if.sh - Conditional execution with if statements
- switch.csh, case.sh - Conditional execution with switch and casestatements
- foreach.csh, for.sh - foreach and for loops
- while.csh, while.sh - while loops
- progress.csh, progress.sh - A progress indicator just for fun using a while loop
Last Updated March 2, 2008