To say the same thing a little more politely:
It depends on what script language you are using. For 'bash', for example (the default Linux shell), 'if' statements need to be surrounded in single or double square-brackets, and also require a semicolon and 'then' statement with each 'if' and 'elif'.
I'm not sure about the use of a regular expression on the right side of the comparison; you may need to use 'expr' for that.
But then again, this all depends on your choice of language, as scripting languages can be quite different in syntax.
Last edited by wapcaplet; 12-06-2004 at 03:23 PM.
|