Because, the original thread was closed this post is a continuation from the url:
http://www.linuxforums.org/forum/lin...rocessing.html
I guess a mod can merge it later.
Code:
ls -1 *.mp3 | sed "s/\(.*\)\.mp3/\1.mp3 \1_128.mp3/" |xargs -n 2 lame -h
^^works very well on files with names such as: mysong.mp3 or my-song.mp3
my problem is the spaces in between instead of a symbol for e.g. 1 - my fav song.mp3
Can someone please tell me whatelse needs to be added to to the command so that it reads the files with spaces and writes them back in the same format.
example:1 - my fav song_128.mp3