Spaces replaced with underscores.
I should learn to phrase my problems a little better. :-P
I use a frontend to cdrecord to burn .wavs of my mp3s because I havent yet found a program that works for me that will automatically convert mp3s during the burning process..
So by shell I use mpg321 to convert mp3s within a directory to .wav
The problem with this, is that I have to rename the files to remove the spaces within the filenames or else it will just tell me that the file doesn't exist (just reading the first part of the filename such as 01). It's really annoying to do rename one by one...
A friend gave me the following which worked for him:
ls | grep " " > /tmp/list$$
while read i
do
fnew=`echo "$i" | sed 's/ /_/g'`
mv "$i" $fnew
done < /tmp/list$$
rm /tmp/list$$
The problem with this, is that it tells me "-bash: gt: command not found" which makes me really annoyed.
Hellllllllllllllllllllllllllp!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!1
I use a frontend to cdrecord to burn .wavs of my mp3s because I havent yet found a program that works for me that will automatically convert mp3s during the burning process..
So by shell I use mpg321 to convert mp3s within a directory to .wav
The problem with this, is that I have to rename the files to remove the spaces within the filenames or else it will just tell me that the file doesn't exist (just reading the first part of the filename such as 01). It's really annoying to do rename one by one...
A friend gave me the following which worked for him:
ls | grep " " > /tmp/list$$
while read i
do
fnew=`echo "$i" | sed 's/ /_/g'`
mv "$i" $fnew
done < /tmp/list$$
rm /tmp/list$$
The problem with this, is that it tells me "-bash: gt: command not found" which makes me really annoyed.
Hellllllllllllllllllllllllllp!!!!!!!!!!!
