I accidentally copied the folders in my Music directory to the parent michal directory. I want to delete these directories in one fell swoop.
Is there any way to make the following work? Or is there a better alternative?
/home/michal/Music $ find . -type d -maxdepth 1 -exec rm -r ../{} \;
Evidently the {} is not being substituted, because the above returns
rm: ../{}: No such file or directory
rm: ../{}: No such file or directory
rm: ../{}: No such file or directory
...