bash script looping
Rodney Kanno
pepe65 at hawaii.rr.com
Wed Nov 14 01:12:14 PST 2001
I need some opinons on loops....for the following script, I would like to add
one while loop. What's the best way to do this? If I can get this to work,
the this will be my first script...hopefully its not too complicated.
Thanks,
Rodney
#!/bin/sh
#
echo ""
echo "Please choose one of the following options:"
echo ""
echo "[N]ormal retrival, just tracks & title via CDDB."
echo "[E]xtended track retrival + normal retrival via CDDB."
echo "[A]dditional text retrival + normal retrival via CDDB."
echo "[T]otal retrival, all options above retrived via CDDB."
echo ""
echo ""
echo "[M]ake Template."
echo ""
echo ""
echo "[C]onvert Template to cover."
read action
case $action in
N|n) echo "Normal retrival....."
disc-cover -a " ";;
E|e) echo "Extended track retrival + normal retrival..."
disc-cover -e -a " ";;
A|a) echo "Additional text retrival + normal retrival..."
disc-cover;;
T|t) echo "Normal, Extended, Additional retrival..."
disc-cover -e;;
M|m) echo "Creating Template....Opening editor....."
disc-cover -n -t cddb -o newcd.cddb
gedit newcd.cddb;;
C|c) echo "Converting template to cover...."
disc-cover -e -f newcd.cddb;;
esac
--
------------------------------------------------------------------------
Over worked, sleep deprived arcitecture student....
More information about the LUAU
mailing list