bash script looping
epsas at inflicted.net
epsas at inflicted.net
Wed Nov 14 02:35:40 PST 2001
for example:
while `true`
do echo "Hello World and et cetera"
sleep 1
done
On Tue, Nov 13, 2001 at 11:12:14PM -1000, Rodney Kanno wrote:
> 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....
>
> ---
> You are currently subscribed to luau as: epsas at inflicted.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
More information about the LUAU
mailing list