Feb 15, 2007 #1 smith364 IS-IT--Management Jun 26, 2001 34 US If ! ./usr/sbin/"any command" then command, command .... else command
Feb 15, 2007 #2 kozlow MIS Mar 3, 2003 326 US ! = Not on the returncode from the command # more tst1 ls tst1 echo $? ! ls tst1 echo $? # ./tst1 tst1 0 tst1 1 Upvote 0 Downvote
! = Not on the returncode from the command # more tst1 ls tst1 echo $? ! ls tst1 echo $? # ./tst1 tst1 0 tst1 1
Feb 15, 2007 #3 kozlow MIS Mar 3, 2003 326 US Guess I should have said it better. In your case it is saying, If the command fails do (then) if it is successful do (else). Hope that makes it a little clearer..... Upvote 0 Downvote
Guess I should have said it better. In your case it is saying, If the command fails do (then) if it is successful do (else). Hope that makes it a little clearer.....