Results 1 to 4 of 4
I used soundkonverter to change the file format of about 5600 songs, all organized neatly into their own folders. Something went wrong halfway, and i had to start over. I ...
- 09-20-2007 #1
removing all files with pattern...
I used soundkonverter to change the file format of about 5600 songs, all organized neatly into their own folders. Something went wrong halfway, and i had to start over. I didnt realize that it wouldnt overwrite the duplicates, and instead just added a '.new.' into the filenames. Now amarok says i have over 10 000 songs, but half of them are duplicates.
so ive been trying to simply recursively remove anything that has a '.new.' in the name, but so far no luck.
so far i've tried rm -rvf Music/*.new.* and cant figure out why it does nothing. A little help would be appreciated.Living the digital dream....
Disclaimer: I may be wrong since I was once before.
Breathe out so I can breathe you in ~~Everlong
- 09-20-2007 #2
Hi rudie_rage !
rm -rf Music/*.new.* wont delete any file ending with .new only. its looking for filenames having .new. ( dot new dot ).
Try removing an extra . ( dot ) after .new
Code:rm -rf Music/*.new*
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-20-2007 #3Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Try this in the Music directory -
If that gives you the correct list you can let the same command do the deleting -Code:find -iname *.new -exec echo {} \;Code:find -iname *.new -exec rm {} \;
- 09-21-2007 #4
Thanks for the help guys! Got it all sorted
Living the digital dream....
Disclaimer: I may be wrong since I was once before.
Breathe out so I can breathe you in ~~Everlong


Reply With Quote