In maven local repository directories with dollar name - unresolved properties? I have outlined how I ended up with a few dozen directories that have a dollar sign in their filename.
I tried to get rid of these with the command:
find . -type d -name "*\$*" -exec rm -rf {} \;
which gave an error message for each directory. But the directories and their content were gone never the less.
So I retried things in /tmp
:
mkdir "\$adir"
find . -type d -name "*\$*" -exec rm -rf {} \;
and again got an error
find: ./$adir: No such file or directory
How could the files be removed without such a warning?
-depth
. – Kusalananda Sep 21 '18 at 13:40