<pre name="code" class="plain">
read A
case $A in
h)
echo "hello"
;;
w|W)
echo "world"
;;
*)
echo "other"
;;
esac
read B
if [ $B -eq 0 ]
then
echo params num is 0
else
echo params num is not 0
fi
<pre name="code" class="plain">
read A
case $A in
h)
echo "hello"
;;
w|W)
echo "world"
;;
*)
echo "other"
;;
esac
read B
if [ $B -eq 0 ]
then
echo params num is 0
else
echo params num is not 0
fi