This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[MOVED] Problem renaming files

amir705

Wed Dec 19, 2012 8:33:12 pm

I am not sure if I am in the right section for this.
I have a hard time renaming my music files.

BreakOut -pWzx4kjQnow.aac
Ever Blazin' -kPsBxf0TWTw.aac
Eye Deh a Mi Knee -7s5Upro5cNM.aac
Fire Links (Intro) -3w1cTe7kgTo.aac
Give It Up to Me -7lwr-pKRyKY.aac
Got 2 Luv U Ft. Alexis Jordan.mp3
Head in the Zone -vdejLiMFkB0.aac
Head to Toe -JQ_NdiIPdug.aac
I'll Take You There -LI-FKVp8yPU.aac
Looga Man. Kid Kurup & jigzagula - Change The Game -t9iPpf1C_d4.aac
Never Gonna Be the Same -88XdrSasrO8.aac
Nina Sky - Connection -yLhZZW6NXpI.aac
Send It On -snmvVWRGrA0.aac
Straight Up -I2l9W4hGfnQ.aac
Tami Chynn - All on Me -1fEvNDmbfhc.aac
Temperature -l2Gf3ZbuKjs.aac
The Trinity -rRfnPaIyrco.aac
Wayne Marshall - Yardie Bone -mQ9geNBO9o0.aac
We Be Burnin' -6Exq3AbaYTY.aac
weiop@weiop:~/Music/sean_paul$


How can I rename them to the song name only?
I gave up trying with the rename command

Thanks ahead :)

madvinegar

Thu Dec 20, 2012 7:34:03 am

Try through terminal using the "mv" command, i.e.
Cd to the folder where your tracks are, i.e.
Code:
cd /home/amir705/Music

and then
Code:
sudo mv BreakOut -pWzx4kjQnow.aac BreakOut.aac


I see that the files have also a gap in their names. i.e. "BreakOut -pWzx4kjQnow.aac" has a gap after the word "BreakOut". You may need to write it like this:
"BreakOut_-pWzx4kjQnow.aac"

To double cleck that, cd to the directory where the tracks are (like I explain above) and in terminal write
Code:
ls

This will list the files included in the directory and you can check the exact name of the files.

amir705

Thu Dec 20, 2012 12:22:54 pm

Sorry, I wanst clear in my first post.

I meant, we can use the rename command to change the names of all the files at once.

here is an example:
weiop@weiop:~/Untitled Folder$ ls
Untitled Document Untitled Document (19th copy)
Untitled Document (10th copy) Untitled Document (3rd copy)
Untitled Document (11th copy) Untitled Document (4th copy)
Untitled Document (12th copy) Untitled Document (5th copy)
Untitled Document (13th copy) Untitled Document (6th copy)
Untitled Document (14th copy) Untitled Document (7th copy)
Untitled Document (15th copy) Untitled Document (8th copy)
Untitled Document (16th copy) Untitled Document (9th copy)
Untitled Document (17th copy) Untitled Document (another copy)
Untitled Document (18th copy) Untitled Document (copy)
weiop@weiop:~/Untitled Folder$ rename 's/Untitled//' *
weiop@weiop:~/Untitled Folder$ ls
Document Document (16th copy) Document (6th copy)
Document (10th copy) Document (17th copy) Document (7th copy)
Document (11th copy) Document (18th copy) Document (8th copy)
Document (12th copy) Document (19th copy) Document (9th copy)
Document (13th copy) Document (3rd copy) Document (another copy)
Document (14th copy) Document (4th copy) Document (copy)
Document (15th copy) Document (5th copy)


I hope that someone can manipulate the rename command so it can meet my first post request.
Thanks xD

madvinegar

Thu Dec 20, 2012 1:23:46 pm

Not sure how to use the "rename" terminal command in ubuntu.

All I know is that to rename a file you use the "mv" command.