<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Aug 10, 2014, at 13:34, Chris Embree <<a href="mailto:cembree@ez-as.net">cembree@ez-as.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">This should work: find /top/dir/to/search/ -type f -name "*.PA" -delete</div></blockquote><div><br></div></div><div>That will delete everything at the current directory as well.</div><div><div><br></div><div><br></div><br><blockquote type="cite"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 2:25 PM, Stephen Potter <span dir="ltr"><<a href="mailto:spp@unixsa.net" target="_blank">spp@unixsa.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>How about "rm *.PA/*"<br>
<br>
-spp<div><div class="h5"><br>
<br>
<br>
On 8/10/2014 1:53 PM, Keith Larson wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div>
<div>I am searching for a way to empty the contents of a bunch
of folders without removing the folders themselves AND leave
other files at the currect directory level alone. </div>
<div> </div>
<div>I have a bunch of print queue folders.</div>
<div> </div>
<div>du -shc *.PA </div>
<div> </div>
<div>shows these results</div>
<div> </div>
<div>199M <a href="http://4a81c53f.pa/" target="_blank">4A81C53F.PA</a><br>
941K <a href="http://4a81d556.pa/" target="_blank">4A81D556.PA</a><br>
0 <a href="http://4a81d56d.pa/" target="_blank">4A81D56D.PA</a><br>
192K <a href="http://4a81d582.pa/" target="_blank">4A81D582.PA</a><br>
632K <a href="http://4a81d598.pa/" target="_blank">4A81D598.PA</a><br>
0 <a href="http://4a81d5ad.pa/" target="_blank">4A81D5AD.PA</a><br>
254M <a href="http://4a81d5c0.pa/" target="_blank">4A81D5C0.PA</a><br>
0 <a href="http://4a81df1b.pa/" target="_blank">4A81DF1B.PA</a><br>
0 <a href="http://4a81df45.pa/" target="_blank">4A81DF45.PA</a></div>
<div> </div>
<div>All folders have a .PA extension so they are easily
identified.</div>
<div> </div>
<div>You can see that some are empty and some have files (print
jobs) in them. I want to delete all files from WITHIN these
folders and nothing else.</div>
<div> </div>
<div>Can someone help with a single command that will do this?</div>
<div> </div>
<div> </div>
<span style="margin-bottom:5px;display:block"> </span></div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
colug-432 mailing list
<a href="mailto:colug-432@colug.net" target="_blank">colug-432@colug.net</a>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>colug-432 mailing list<br><a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>http://lists.colug.net/mailman/listinfo/colug-432<br></blockquote></div><br></body></html>