View Single Post
Old 2006-01-12, 04:31 AM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
find . -type f -name \*.wmv -print | awk '{ print "rm \"" $1 \"" }' | sh

that will delete them if they include spaces, (, ), and other punctuation characters.

you could use xargs, but, if the list is long enough, xargs will say, too many arguments.

index4\*.html (would get rid of all files starting with index4 and ending with .html)

needs the \ in there.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote