D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] regexp?



Simon Waters wrote:

#  Simon Waters 2002
#
if [ $# -ne 2 -a $# -ne 4 ]
then
 echo "Usage $0 123 456 7890 myfile"
 echo "   or $0 1234567890 myfile"

grrr pretend there was a exit 1 ,fi cut and pasted here
correctly ;)

Kind of like...

exit 1
fi

...but without the angles.

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly