You are not logged in.
I moved all of my music files over from my windows partition and windows media player left a bunch of .ini files, so how would I delete all of them with one command.
find /root/music -name *.ini
That finds all the files that need to be deleted but I can't figure out the rm command that I would run afterwards.
Offline
rm -f `find /root/music -name *.ini`
Offline
naaaaaaah!
find /root/music -name *.ini -exec rm {} ;
-exec will run the command straight away
find /root/music -name *.ini -ok rm {} ;
-ok you have to use y/n confirmation
in both cases {} is the filename passed along
Offline
thanks alot guys
Offline