<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>find /path/to/files -type f -name "*.PA" -print0 | xargs -0 rm -f</div><div><br></div><div>read what those commands do before you run it ;)<br><br><br><div>Bill Schwanitz</div><div><br></div><div>If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut. - Albert Einstein.</div></div><div><br>On Aug 10, 2014, at 2:25 PM, Stephen Potter <<a href="mailto:spp@unixsa.net">spp@unixsa.net</a>> wrote:<br><br></div><blockquote type="cite"><div>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div class="moz-cite-prefix">How about "rm *.PA/*"<br>
<br>
-spp<br>
<br>
<br>
On 8/10/2014 1:53 PM, Keith Larson wrote:<br>
</div>
<blockquote cite="mid:53E77959020000160000FCD6@k12group.net" type="cite">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Generator" content="Novell Groupwise Client (Version
14.0.0 Build: 115243)">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div class="GroupWiseMessageBody" id="GroupWiseSection_1407692903000_klarson@k12group.net_59511A0513870000BD1BF681F57056B0_">
<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><!--StartFragment-->199M 4A81C53F.PA<br>
941K 4A81D556.PA<br>
0 4A81D56D.PA<br>
192K 4A81D582.PA<br>
632K 4A81D598.PA<br>
0 4A81D5AD.PA<br>
254M 4A81D5C0.PA<br>
0 4A81DF1B.PA<br>
0 4A81DF45.PA</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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
colug-432 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:colug-432@colug.net">colug-432@colug.net</a>
<a class="moz-txt-link-freetext" href="http://lists.colug.net/mailman/listinfo/colug-432">http://lists.colug.net/mailman/listinfo/colug-432</a>
</pre>
</blockquote>
<br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>colug-432 mailing list</span><br><span><a href="mailto:colug-432@colug.net">colug-432@colug.net</a></span><br><span><a href="http://lists.colug.net/mailman/listinfo/colug-432">http://lists.colug.net/mailman/listinfo/colug-432</a></span><br></div></blockquote></body></html>