News for hackers. Stuff that matters.
Re:Ask HN: What's your speciality, and what's your "FizzBuzz... by presidentender on Thursday January 02, 2014 @10:43AM (#7000073)
Can't we

    cd /path/to/wherever
    rm -rf *.mp3

?
Re:Ask HN: What's your speciality, and what's your "FizzBuzz... by aaronem on Thursday January 02, 2014 @10:44AM (#7000083)
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.
Re:Ask HN: What's your speciality, and what's your "FizzBuzz... by code_duck on Thursday January 02, 2014 @11:31AM (#7000393)
It's supposed to be recursive. That would only delete the files in the current directory, not subdirectories as well.
Re:Ask HN: What's your speciality, and what's your "FizzBuzz... by presidentender on Thursday January 02, 2014 @03:19PM (#7001985)
-r is the 'recursive' flag.
Re:Ask HN: What's your speciality, and what's your "FizzBuzz... by aaronem on Thursday January 02, 2014 @04:16PM (#7002343)
Yes, but it doesn't do what you think it does. Feel free to try it for yourself if you don't believe me.