|
|
One liner...
Actually, this is a one-liner, both for tcsh and bash shells:
One liner...
It's usually considered more efficient to use xargs:
xargs is not safe
xargs will choke on any paths that contain spaces, a common occurrence on Macs. Probably the safest command on a Mac is this:
xargs is not safe
Don't the -print0 and -0 make xargs process spaces correctly?
xargs -0 is safe
Using 'find -print0 | xargs -0' is safe.
One liner...
find / -xdev -name .DS_Store -print0 | xargs -0 rm -f
I prefer not to descend into network mounted drives, CDROMs, etc., hence the -xdev flag. Add /Volumes/Disk23 and such to explicitly search those disks as well.
One liner...
And in zsh, it's even simpler:
rm /**/.DS_Store Everyone should use zsh!
One liner...
thanks were can i find more info on zsh other than the man pages |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|