Here's an example
if [ $# == 0 ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
echo "do this"
echo "do that"
echo "do this and that"
fi
Edit: It may be easier to do it this way...
if [ $# == 0 ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
echo "do this
do that
do this and that"
fi
Last edited by homey; 04-26-2005 at 11:10 AM.
|