Hi,
I'd like to do something like this:
[[ -e $GREP ]] || echo $GREP does not exist ; exit 1
or
[[ -e $GREP ]] || echo $GREP does not exist && exit 1
But it seems the script exits regardless. How can I exit a script and send a warning to the user on the same line?
Thanks!
-John
I'd like to do something like this:
[[ -e $GREP ]] || echo $GREP does not exist ; exit 1
or
[[ -e $GREP ]] || echo $GREP does not exist && exit 1
But it seems the script exits regardless. How can I exit a script and send a warning to the user on the same line?
Thanks!
-John