<html><head>
<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"></head>
<body style="font: 10pt/normal Segoe UI; margin: 16px 16px 4px; font-size-adjust: none; font-stretch: normal;"><div class="GroupWiseMessageBody" id="GroupWiseSection_1407719289000_klarson@k12group.net_59511A0513870000BD1BF681F57056B0_"><div>I need to setup a test server to test these commands. I tried several suggestions without the -delete and they reported syntax errors. I appreciate the suggestions. I think that I'll find something workable in all of them, but have to have a safe way to test.</div><span id="GWSignatureSent" style="padding-right: 0px; padding-left: 0px; margin-bottom: 5px; display: block;"><span style="display: block;"><br><span style="font-size: 10pt; display: inline-block; -ms-word-wrap: normal;"><div>Keith Larson</div>
<div>Franklin Computer Services - K12group</div>
<div><a href="mailto:klarson@k12group.net">klarson@k12group.net</a></div>
<div>(614) 561-4887 (mobile)</div>
<div> </div></span></span></span><span style="margin-bottom: 5px; display: block;"> </span><div class="GroupWiseMessageBody" id="GroupWiseSection_1407709479000_pat@linuxcolumbus.com"><span class="GroupwiseReplyHeader">>>> "Pat Collins" <pat@linuxcolumbus.com> 8/10/2014 6:24 PM >>><br></span><div><div>Late to the party. Search for the directories named *.PA, then execute rm for to<br>remove files in that folder. Since rm is not recursive it will only delete what<br>is in that directory. <br><br> find . -name "*.PA" -type d -exec rm {}/* \; <br><br>This has not been tested by me.<br><br> Pat <br><br>On Sun, 10 Aug 2014 13:53:29 -0400 "Keith Larson" wrote<br><br> I am searching for a way to empty the contents of a bunch of folders<br>without removing the folders themselves AND leave other files at the currect<br>directory level alone. <br><br> I have a bunch of print queue folders.<br><br> du -shc *.PA<br><br> shows these results<br><br> 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 <br> All folders have a .PA extension so they are easily identified.<br><br> You can see that some are empty and some have files (print jobs) in them. I<br>want to delete all files from WITHIN these folders and nothing else.<br><br> Can someone help with a single command that will do this?<br><br><br>_______________________________________________<br>colug-432 mailing list<br>colug-432@colug.net<br><a href="http://lists.colug.net/mailman/listinfo/colug-432">http://lists.colug.net/mailman/listinfo/colug-432</a><br></div></div></div></div></body></html>