[nflug] bash scripting question

Corey Reichle coreyreichle at verizon.net
Mon Jul 7 21:49:01 EDT 2008


if test -e $a/$b; then
  printf"exist"
  {rest of script}
  exit 0
elif
  exit 1
fi



On Mon, Jul 7, 2008 at  9:29 PM, Robert Wolfe wrote:

> For the following script:
>
> if test -e $a/$b; then printf "exists"; fi
>
> If the condition is true, then I want the script to exit and not 
> continue to run.  What command would I use and where would I put it in 
> this statement?
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug


More information about the nflug mailing list