[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



The above won't work as it will expand the *.h before the test and 
you'll get a syntax error.

Here's a quick possibilitie:

ls *.h >/dev/null 2>/dev/null && dothis

dothis will be executed if there are any files that match the pattern. 
Send stdout and stderr to /dev/null as you're not interested in any 
error or output.

-- 
Until later, Geoffrey       Registered Linux User #108567
                             AT&T Certified UNIX System Programmer - 1995


</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>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00217.html">[ale] Q: Bash: test for existence of any file matching a glib	pattern.</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00219.html">[ale] Q: setting up NetScrape 7.1, j2re-1.4.2_05, and RH-7.3</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00221.html">[ale] Q: Bash: test for existence of any file matching a glob	pattern.</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00224.html">[ale] [Fwd: [Prism54-users] Re:  interrupt trouble]</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00218"><strong>Date</strong></a></li>
<li><a href="threads.html#00218"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>