if [ $1 -eq 100 ]
then
echo "Count is 100"
else
if [ $1 -gt 100 ]
then
echo "Count is greater than 100"
else
echo "Count is less than 100"
fi
fi
# case example
#!/bin/bash
case $1 in
start)
echo starting
;;
stop)
echo stoping
;;
restart)
echo restarting
;;
*)
echo don\'t know
;;
esac
No comments:
Post a Comment