I read:
Also, what about if you have a directory full of 100s of mp3s and you want to selectively go through the list only deleting certain ones. For me it's quicker to use a graphical filebrowser and select the ones you want to delete using the mouse - far less keystrokes than typing rm filename.mp3 each time. Other operations i find it quicker to use the command line.
hmm I'm just fine with
rm -i locate -i ligeti | grep -i mp3
or use filename completion ...
or
#!/bin/bash
for FILE in locate -i $1 | grep -i "\.$2$
; do
echo $FILE
mpg123 -q $FILE
rm -i $FILE
done
warning ... the above is untested if you use it to wipe your files, don't complain to me ...
regards,
x