loopy, loopy, loopy!
Nov. 14th, 2006 01:50 pmyesterday in class we learned about conditional shell loops:
plus shell variables:
Today we're learning more about quoting, i/o, and loops.
It's fun to see what I do and don't know. Some of this is review; some is brand-spankin'-new.
Fr'ex, I found I can use
- if then elif else fi
- case esac
plus shell variables:
- $1, $2, $3 ... $n
command line arguments - $#
count of all command line arguments - $*
all command line arguments - $?
exit code from last command
Today we're learning more about quoting, i/o, and loops.
It's fun to see what I do and don't know. Some of this is review; some is brand-spankin'-new.
Fr'ex, I found I can use
$(cmd) in place of `cmd`.