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


Click here to return to the 'Delete matching files in two Finder folders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Delete matching files in two Finder folders
Authored by: pcunix on Oct 09, '05 04:12:07AM

One small thing:

A "." file in the set will stop the entire process.

This is something easy to do in Terminal; see http://aplawrence.com/Basics/undo-bad-archive.html for details but basically just

cd dir2
for i in *
do rm -rf "/dir1/$i"
done

That doesn't complain about "." files, but it won't remove them either.


---
--
Tony Lawrence
Free SCO, Mac OS X and Linux Skills Tests: http://aplawrence.com/skillstest.html



[ Reply to This | # ]