Quote:
|
Originally Posted by siog
Code:
else
do nothing /*not sure how to say do thing. should it be sleep? */
fi
|
You don't need an "else" statement if you don't want anything done. That is, just do
Code:
if [ $foo = $bar ]; then
blorp
fi
If you really want to preserve your "else" but still do nothing, you can do
Code:
if [ $foo = $bar ]; then
blorp
else
:
fi
In your case, "sleep" wouldn't make sense since you don't have a loop; all it would do is sleep for a certain time and then quit. Usually you would sleep in a loop to wait before looping again.