[nycbug-talk] Deleting Lots of Files.

Michael Hernandez mhernandez at ocsny.com
Wed Jun 21 11:08:19 EDT 2006


On Jun 21, 2006, at 10:44 AM, Hans Kaspersetz wrote:
> I would like to delete all the files in the 114* series.  However,  
> when
> I pass rm -f ./114*, I get to many arguments as an error.  What I  
> really
> want to delete is all files from before June.

if you use a loop then rm will only get one argument at a time...

for file in ./114*; do rm $file; done;

could work.. unless the shell has some limit on args to a for loop?


Mike




More information about the talk mailing list