In article < XXXX@XXXXX.COM >,
With a real Bourne shell, I don't believe you can combine conditionals. With
most modern shells, like ksh, bash, etc, you can. For example, with ksh:
if [[ $cond1 = 1 && ($cond2 = 2 || $cond3 > 2) ]]
Again, shell dependant, but I believe all the sh-derived shells use $? to store
the return code of the previous command.
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting