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

[no subject]



The 'find' command will almost always do this job:

First make sure you can concoct a regular expression for the name that 
matches only this single file.  Maybe this will work; if not experiment:

    find . -maxdepth 1 -name "*A?B*" -print

If this prints that file, and only that file, then add the remove
action:

    find . -maxdepth 1 -name "*A?B*" -exec rm {} \;
   
This works because the {} notation will match whatever filename the
other rules have selected, no matter what weird characters are in
there.

-- 
	David A. De Graaf    DATIX, Inc.    Hendersonville, NC
	dad at datix.2y.net    (828) 696-8646;  fax (828) 694-1037


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00225" href="msg00225.html">[ale] How can I delete this file?</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00217" href="msg00217.html">[ale] How can I delete this file?</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
<li><strong><a name="00219" href="msg00219.html">[ale] How can I delete this file?</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="00220" href="msg00220.html">[ale] How can I delete this file?</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00222.html">[ale] How can I delete this file?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00224.html">[ale] Question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00222.html">[ale] How can I delete this file?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00225.html">[ale] How can I delete this file?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00223"><strong>Date</strong></a></li>
<li><a href="threads.html#00223"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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