LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   deleting all *.m3u files in a directory+subdir? (https://www.linuxquestions.org/questions/linux-newbie-8/deleting-all-%2A-m3u-files-in-a-directory-subdir-241513/)

minm 10-11-2004 08:22 PM

deleting all *.m3u files in a directory+subdir?
 
how can it be done?

TroelsSmit 10-11-2004 08:26 PM

try something like:

rm -rf *.m3u

when in the directory.

minm 10-11-2004 08:34 PM

thanks :)

minm 10-12-2004 10:32 AM

hmm, doesn't seem to work, well, in the subdirectories at least.. i odn't want to go through each directory deleting it :(

fsbooks 10-12-2004 10:49 AM

This will do it:
find . -name "*.m3u" -exec rm {} \;

You may want to do it with an ls (find . -name "*.m3u" -exec ls {} \;) first, just to see that it is listing the appropriate files.

minm 10-12-2004 04:31 PM

it works

thanks :)


All times are GMT -5. The time now is 05:19 AM.