Date scripting

Steven W. Orr steveo at syslang.net
Fri Mar 24 18:00:09 UTC 2006


=>find . -mtime +30 -type f -exec rm {} \;

Noone ever listens to me!

find . -mtime +30 -type f | xargs rm 

The 1st will start a process for each file that gets deleted. The second 
will start the fewest number of files needed.


-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net




More information about the fedora-list mailing list