I have a ton of .mp3 files that came from my old Windows box and are in the format: This is the name of the file.mp3 and I would like them to be like this: This_is_the_name_of_the_file.mp3 I don't have the time to rename each, one by one, is there a way to rename them all at once?
* Dale (SprD72@charter.net) [030106 15:15]:
I have a ton of .mp3 files that came from my old Windows box and are in the format: This is the name of the file.mp3 and I would like them to be like this: This_is_the_name_of_the_file.mp3
ls *mp3 | while read name; do new_name="$(echo $name | tr ' ' '_')" mv $name $new_name done -- -ckm
Hi, Here is an effective way to do it with a script: http://linux.bryanconsulting.com/stories/storyReader$83 Jostein On 06.01.03,18:15, Dale wrote:
I have a ton of .mp3 files that came from my old Windows box and are in the format: This is the name of the file.mp3 and I would like them to be like this: This_is_the_name_of_the_file.mp3 I don't have the time to rename each, one by one, is there a way to rename them all at once?
participants (3)
-
Christopher Mahmood
-
Dale
-
Jostein Berntsen