Find the answer to your Linux question:
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 ...
  1. #1
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133

    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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Try this in the Music directory -
    Code:
    find -iname *.new -exec echo {} \;
    If that gives you the correct list you can let the same command do the deleting -
    Code:
    find -iname *.new -exec rm {} \;

  4. #4
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...