Hi, I'm writing a very small script for converting my ogg files into mp3 (for the iPod). It goes as:
Code:
for i in `locate .ogg |grep /home/thomas/multimedia/musik`
do
ffmpeg -i "$i" "$i.mp3"
done
but the problem is, that some of the files has ugly signs in them, like: "Rammstein - Feuer Frei!.ogg". As you can see in the script a surrond the file names with "quotes" to handle the spaces, but these signs like ! doesn't work:
Code:
$ ffmpeg -i "Rammstein - Feuer Frei!.ogg" "Rammstein - Feuer Frei!.mp3"
bash: !.ogg": event not found
So is there some small utility for outcommiting file names (bash does it when pressing tab) ? Or is there some other way to handle it?