Hi, On Mon, 21 Feb 2000, Jon Pennington wrote:
Okay, I've cleaned up my script quite a bit since this posting. The part that still eludes me is the usage of the || operator. Remember, I've never written a script in my life ;)
Well, the || operator is very smart. It's an OR operator that can be used for checking, if an operation failes or not. <operation1> || <operation2> If operation1 succeeds, it will return TRUE, which means that this OR operation is TRUE and the second part will not be executed. If if fails (return value is FALSE), operation2 will be executed. It can be compared to the perl construct "do some action OR die". If action fails, the script will die. Does this make any sense? Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Schanzaeckerstr. 10 http://www.suse.de/~grimmer 90443 Nuernberg, Germany -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/