![]() Registered Member ![]()
|
I was sent a load of mp3's by a friend and they all have "_20" where i would expect the spaces to be.
Is there a script i can use to fix this? Can i write my own? I don't know any scripting languages, only C. Please help!! |
![]() Registered Member ![]()
|
should do the trick. Start it with If you get an argument list too long error, use xargs: ls -1 | xargs ./replace20 |
![]() Registered Member ![]()
|
Ok, that's awesome, thanks.
When I say a load, I mean 60 so is there a way to get it to do the contents of a folder? Not that I don't lore you for the script ![]() |
![]() Registered Member ![]()
|
Alanceil's script is doing this already. |
![]() Registered Member ![]()
|
Sure. Just start it with the folder's name: ./replace20 /home/tux/mp3/convertme/*.mp3
Note: You might want to add a g to the sed command: sed 's/_20/ /g' This will convert any occurence of _20 to a " ". Without the g, only the first _20 will be changed.
Last edited by Alanceil on Tue Aug 07, 2007 12:45 pm, edited 1 time in total.
|
Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]