Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to remove .DS_Store files on any *NIX Machine' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to remove .DS_Store files on any *NIX Machine
Authored by: merlyn on Nov 28, '03 01:34:54PM
print0 is your friend. xargs -0 is your friend. Use them wisely.
find /top/dir -name '.DS_Store' -print0 | xargs -t0 rm


[ Reply to This | # ]
A script to remove .DS_Store files on any *NIX Machine
Authored by: sjk on Nov 28, '03 09:14:10PM

Ahh, I'd never noticed the -t option for xargs... thanks for moving it out of my blind spot.



[ Reply to This | # ]