[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sun Aug 8 17:24:50 2004 -->
- <!--x-from-r13: syrgpu ng culqrnhk.bet (Tyrgpu) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: m31xihgy7r.fsf_-[email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Q: Bash: test for existence of any file matching a glob pattern. -->
- <li><em>date</em>: Sun Aug 8 17:24:50 2004</li>
- <li><em>from</em>: fletch at phydeaux.org (Fletch)</li>
- <li><em>in-reply-to</em>: <[email protected]> (Joe Knapka's message of "08 Aug 2004 14:40:40 -0600")</li>
- <li><em>references</em>: <[email protected]> <<a href="msg00217.html">[email protected]</a>> <[email protected]></li>
- <li><em>subject</em>: [ale] Q: Bash: test for existence of any file matching a glob pattern.</li>
if [[ -z "$( print *.h(N) )" ]] ; then
print no dot h files . . .
else
frobnicate *.h
fi
The "(N)" suffix turns on nullglob for a single expansion.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00215" href="msg00215.html">[ale] Q: Bash: test for existence of any file matching a glib pattern.</a></strong>
<ul><li><em>From:</em> jknapka at kneuro.net (Joe Knapka)</li></ul></li>
<li><strong><a name="00217" href="msg00217.html">[ale] Q: Bash: test for existence of any file matching a glib pattern.</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
<li><strong><a name="00220" href="msg00220.html">[ale] Q: Bash: test for existence of any file matching a glob pattern.</a></strong>
<ul><li><em>From:</em> jknapka at kneuro.net (Joe Knapka)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00220.html">[ale] Q: Bash: test for existence of any file matching a glob pattern.</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00222.html">[ale] CD-bootable distro (besides Knoppix)?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00220.html">[ale] Q: Bash: test for existence of any file matching a glob pattern.</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00218.html">[ale] Q: Bash: test for existence of any file matching a glib pattern.</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00221"><strong>Date</strong></a></li>
<li><a href="threads.html#00221"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>