[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Fri Feb 18 08:13:20 2005 -->
- <!--x-from-r13: rfbgrevp ng 3gvzrf25.arg (Urbsserl) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: Pine.LNX.4.44.0502152230590.2264-[email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Bash scripting question #2 -->
- <li><em>date</em>: Fri Feb 18 08:13:20 2005</li>
- <li><em>from</em>: esoteric at 3times25.net (Geoffrey)</li>
- <li><em>in-reply-to</em>: <<a href="msg00702.html">[email protected]</a>></li>
- <li><em>references</em>: <[email protected]> <<a href="msg00626.html">[email protected]</a>> <<a href="msg00691.html">[email protected]</a>> <<a href="msg00699.html">[email protected]</a>> <<a href="msg00702.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Bash scripting question #2</li>
> That won't work, that's why I used the '-o' syntax in an earlier post.
> You can do it this way:
>
> if [ -f foo ] || [ -f bar ]....
>
> But that's more typing.. :)
Just tested the following in bash, which was originally a ksh construct:
if [[ -f foo || -f bar ]]; then ....
And it works in bash as well.
--
Until later, Geoffrey
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00707" href="msg00707.html">[ale] Bash scripting question #2</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00619" href="msg00619.html">[ale] Bash (or whatever) question</a></strong>
<ul><li><em>From:</em> johnmills at speakeasy.net (John Mills)</li></ul></li>
<li><strong><a name="00626" href="msg00626.html">[ale] Bash (or whatever) question</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00691" href="msg00691.html">[ale] Bash scripting question #2</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
<li><strong><a name="00699" href="msg00699.html">[ale] Bash scripting question #2</a></strong>
<ul><li><em>From:</em> mdhirsch at gmail.com (Michael Hirsch)</li></ul></li>
<li><strong><a name="00702" href="msg00702.html">[ale] Bash scripting question #2</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00702.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00704.html">[ale] [OT] I just bought an iBook, what now</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00702.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00707.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00703"><strong>Date</strong></a></li>
<li><a href="threads.html#00703"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>