<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div><br></div><br><div><div>On Aug 10, 2014, at 12:53, Keith Larson &lt;<a href="mailto:klarson@k12group.net">klarson@k12group.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote 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=utf-8">
<div style="font: 10pt/normal Segoe UI; margin: 16px 16px 4px; font-size-adjust: none; font-stretch: normal;"><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.&nbsp; </div><div>&nbsp;</div></div></div></blockquote><div><br></div><div>find . -name ‘*.PA’ -type f -mindepth 2</div><div><br></div><div><br></div><div>add “-delete” to the end to actually make it remove the files.</div><div><br></div><br><blockquote type="cite"><div style="font: 10pt/normal Segoe UI; margin: 16px 16px 4px; font-size-adjust: none; font-stretch: normal;"><div class="GroupWiseMessageBody" id="GroupWiseSection_1407692903000_klarson@k12group.net_59511A0513870000BD1BF681F57056B0_"><div>I have a bunch of print queue folders.</div><div>&nbsp;</div><div>du -shc *.PA </div><div>&nbsp;</div><div>shows these results</div><div>&nbsp;</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>&nbsp;</div><div>All folders have a .PA extension so they are easily identified.</div><div>&nbsp;</div><div>You can see that some are empty and some have files (print jobs) in them.&nbsp; I want to delete all files from WITHIN these folders and nothing else.</div><div>&nbsp;</div><div>Can someone help with a single command that will do this?</div><div>&nbsp;</div><div>&nbsp;</div><span style="margin-bottom: 5px; display: block;">&nbsp;</span></div></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>