<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>if [ -e filename ]; then echo "exists"; fi<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Original Message ----<br>From: Robert Wolfe &lt;robert@muzzlethem.com&gt;<br>To: nflug@nflug.org<br>Sent: Monday, July 7, 2008 9:29:06 PM<br>Subject: [nflug] bash scripting question<br><br>
For the following script:<br><br>if test -e $a/$b; then printf "exists"; fi<br><br>If the condition is true, then I want the script to exit and not continue <br>to run.&nbsp; What command would I use and where would I put it in this <br>statement?<br>_______________________________________________<br>nflug mailing list<br><a ymailto="mailto:nflug@nflug.org" href="mailto:nflug@nflug.org">nflug@nflug.org</a><br><a href="http://www.nflug.org/mailman/listinfo/nflug" target="_blank">http://www.nflug.org/mailman/listinfo/nflug</a><br></div></div></div></body></html>