Introduction
Basics of Bash Scripting
- Bash Scripting Variables - Environment and Special Shell Variables
- Bash Scripting - Arithmetic, Logical, Relational and Bitwise Operators
Arrays
Control Flow
Loops
- Bash Scripting - 'for' Loop
- Bash Scripting - 'while' Loop
- Bash Scripting - 'select' Loop and 'select-case' Statement
I am using a simple select but running on Rhel6 and the sort sequence is not the same as the list
ReplyDeleteselect shuttle in columbia endeavour challenger discovery atlantis enterprise pathfinder pathfinder2
do
echo "$shuttle selected"
done
1) columbia
3) challenger
5) atlantis
7) pathfinder
2) endeavour
4) discovery
6) enterprise
8) pathfinder2