Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
presidentender
· 12y ago · 0 comments
Can't we
cd /path/to/wherever rm -rf *.mp3 ?
Comments
[–]
aaronem
12y ago
You have stumbled squarely into the tripwire implicit in that question; "rm -rf *.mp3" ignores directories whose names don't end in ".mp3", and deletes those whose do.
[–]
code_duck
12y ago
It's supposed to be recursive. That would only delete the files in the current directory, not subdirectories as well.
[–]
presidentender
OP
12y ago
-r is the 'recursive' flag.
[–]
aaronem
12y ago
Yes, but it doesn't do what you think it does. Feel free to try it for yourself if you don't believe me.