Revision: 21124
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 3, 2009 20:45 by webonomic
Initial Code
list=( sh csh bash zsh ksh tcsh ) for i in ${list[@]}; do whereis $i >> shell_locations.txt; done;
Initial URL
Initial Description
This creates an array of various linux shell names, loops through the array and ouputs a file called shell_locations.txt showing where the shells are located on the linux system.
Initial Title
Loop through Array in Bash
Initial Tags
array
Initial Language
Bash