Changes

Jump to: navigation, search

BASH Flow Control

159 bytes added, 12:53, 21 September 2008
if
echo -n "Are you sure you wish to remove '$file'?"
ready read YN
if [ "$YN" = "y" -o "$YN" = "Y" ]
then
Executes ''commands'' once for each time that ''pipeline'' returns a true result (exit code of zero). Example:
!!!!!!!!! Need example !!!!!!!!!!num=1 while [ $num -le 5 ] do echo $num num=$[ $num + 1 ] doneIn this case it will just print number 1 to 5   while (( 1 )) do eject -T doneTry executing this script on your pc
= for (list) =
1
edit

Navigation menu