I usually use the command line bellow to remove directories on file system. But, for the 1st time find
is returning names with white spaces on it, and rm
doesn't recognize it.
find . -name .AppleDouble* -exec rm -rf {} \;
It throws the following error: find: './Aerosmith/Young Lust/.AppleDouble': No such file or directory
Is it possible to achieve it using just a single line like this one? Or should I use some kind of script? If the script is the solution, please, could you post an example?