[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Fri Feb 18 09:29:04 2005 -->
- <!--x-from-r13: quhefg ng zvaqfcevat.pbz (Rbj_Vhefg) -->
- <!--x-message-id: 28650616.1108736609970.JavaMail.root@wamui10.slb.atl.earthlink.net -->
- <!--x-subject: [ale] Bash scripting question #2 -->
- <li><em>date</em>: Fri Feb 18 09:29:04 2005</li>
- <li><em>from</em>: dhurst at mindspring.com (Dow_Hurst)</li>
- <li><em>subject</em>: [ale] Bash scripting question #2</li>
-----Original Message-----
From: Geoffrey <esoteric at 3times25.net>
Sent: Feb 18, 2005 8:07 AM
To: Atlanta Linux Enthusiasts <ale at ale.org>
Subject: Re: [ale] Bash scripting question #2
Geoffrey wrote:
> 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
_______________________________________________
Ale mailing list
Ale at ale.org
<a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
No sig.
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00709" href="msg00709.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-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00705.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00707.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00705.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00709.html">[ale] Bash scripting question #2</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00706"><strong>Date</strong></a></li>
<li><a href="threads.html#00706"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>