Need to apply it on csh.
to check if the inputted
$2 is not number nor the word "all"
if ($#argv == 2 && ($2 != all && $2 != **any number**)) then echo "wrong parameter"
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community