Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-05-2003, 08:29 PM   #1
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Rep: Reputation: 30
mp3 files - replacing blank spaces with _ script?

could someone lead me to a script? say they're all under one directory...

to convert "Music - Cool Artist.mp3" to "Music_-_Cool_Artist.mp3"
Old 12-05-2003, 09:03 PM   #2
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Although I'm not a script guru and alternate solution would be to download an ID3 tag editor called EasyTag it has a way you can change the filename to change all spaces into underscores and various things. It's cool try it out.
Old 12-05-2003, 09:03 PM   #3
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
a rough perl script. may have problems with filenames containing special char.
must be run from within the directory:
perl *

while ($_=$old=shift) {
Old 12-06-2003, 01:54 AM   #4
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you get easyTAG, be sure to get the patches - otherwise, it won't do precisely what you want - spaces to underscores. First time I downloaded it, I missed those and had to recompile. easyTAG's nice but kind of limited. No TagScanner.
Old 12-08-2003, 04:33 AM   #5
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Original Poster
Rep: Reputation: 30
thanks guys


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
script to remove spaces from multiple filenames jeffreybluml Linux - Newbie 36 07-31-2013 03:10 AM
a command/script for replacing a word with another jaakkop Programming 14 12-04-2005 11:21 AM
bash script with spaces Quantum0726 Programming 2 11-14-2005 10:26 PM
replacing all spaces in filenames of a directory merlin23 Linux - Newbie 1 01-11-2005 08:52 AM
Problem with SED and blank spaces BigLarry Programming 2 06-10-2004 05:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration