BASH Flow Control
echo -n “Are you sure you want to execute this operation?” read YN if [ "$YN" = "y" -o "$YN" = "Y" ] then echo “Executing your action…” your stuff else echo “Aborted. Operation not executed.” fi
Read the rest of this entry »echo -n “Are you sure you want to execute this operation?” read YN if [ "$YN" = "y" -o "$YN" = "Y" ] then echo “Executing your action…” your stuff else echo “Aborted. Operation not executed.” fi
Read the rest of this entry »