Path: utzoo!attcan!uunet!husc6!cmcl2!brl-adm!adm!rbj@nav.icst.nbs.gov From: rbj@nav.icst.nbs.gov (Root Boy Jim) Newsgroups: comp.unix.questions Subject: Can you tell if a C-shell variable is numeric? Message-ID: <16629@brl-adm.ARPA> Date: 25 Jul 88 18:51:05 GMT Sender: news@brl-adm.ARPA Lines: 16 ? From: Vijay Sundaram ? Hi gurus, ? A question on the C-shell. I'm writing a C-shell script (no flames please!) ? and I need to determine if a shell variable is a number as opposed to a ? string. expr $var + 0 >& /dev/null || exit (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 The opinions expressed are solely my own and do not reflect NBS policy or agreement Careful with that VAX Eugene!