I'm using the following command to remove every ".dummy" directories in a folder named "Test Folder":
rm -rf `find "Test Folder" -type d -name .dummy`
However, this doesn't work since it expands to, say:
rm -rf Test Folder/.dummy
Since the whitespace is not escaped, this fails.
I also tried something like this:
find "Test Folder" -type d -name .dummy -exec rm -rf {} \;
It works, but it gives an annoying error like this:
find: Test Folder/.dummy: No such file or directory
Is there a way to make either solution to succeed?