Help organizing a music directory with sub directories.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help organizing a music directory with sub directories.
# 1  
Old 01-01-2010
Help organizing a music directory with sub directories.

Hello all,

I used to have a great script and I lost it Smilie

What the script did was searched a directory named say "music"
It searched all sub directories for .mp3 files
Then placeed all the .mp3's into a directory of the band name
It also renamed the .mps "track#, band name, album name" (I think it was)

Anyways, something close to the above would be great.

I searhed and found one but I think it could not search though sub directories.

Thank you for your help.
# 2  
Old 01-01-2010
Hi Komputers man,

I have a few questions to make your description clear:
1. You said after mp3 files are found the mp3's should be placed into a directory with the band name. Is this band name included inside mp3 file name? can you provide me a form of mp3 file or what u need.

2.
Quote:
It also renamed the .mps "track#, band name, album name"
I didnt understand this point, give me an example then i can provide u a code.
# 3  
Old 01-01-2010
Quote:
Originally Posted by EAGL€
Hi Komputers man,

I have a few questions to make your description clear:
1. You said after mp3 files are found the mp3's should be placed into a directory with the band name. Is this band name included inside mp3 file name? can you provide me a form of mp3 file or what u need..
Yes the band name is in the id tag... but not the .mp3 file name.


Quote:
Originally Posted by EAGL€
2.
It also renamed the .mps "track#, song name, band name, album name"

I didnt understand this point, give me an example then i can provide u a code.
Sure, for instance the file name would then be similar to this...
10 Stir it up Bob Marley Legend.mp3

Sorry I forgot the song name in the original post.

Basically what my main goal is would be this... after running the script, I would have the directory named music, with sub directories of band names which include all the .mp3's of that band. No sum directories for albums and so on.

I do not care much for the albums to be seperated, I would just like a directory for a band and all their music. If I wanna see what album the song came in I will look it up inn the tag.

Make sense?
# 4  
Old 01-02-2010
I've read ur post and it is still not certain which part of the mp3 to parse.
Quote:
10 Stir it up Bob Marley Legend.mp3
As long as all mp3's has a spesific form we can parse the album name, or singer. For example when we consider "-" as a delimeter below examples then first part is Group name, second is song name (or the field before the extention ".mp3" ).
AcDc - I Love Rock And Roll.mp3
Skid Row- Youth Gone Wild.mp3
But in ur example "10 Stir it up Bob Marley Legend.mp3" we cant distinguish (parse) name, group name or album parts; so i cant suggest a solution.
# 5  
Old 01-02-2010
So would you be able to write a script that could search a directory and it's sub directories, then group them into directories such as...

Dir = Ac/Dc
- then all Ac/Dc songs simply in this dir by their existing name.

My main goal is to group all songs by band name with only one directory. Right now I have several duplicate songs because some songs are on several directories because of different album name.

I have about 100gb of music, I would imagine I could save several gb's by changing the way I have it organized. After this I will then be searching and removing duplicates.
# 6  
Old 01-03-2010
I think EasyTag can do it .
# 7  
Old 01-03-2010
there are a lot of tools which can do this... the tool i use is itunes. depending on your os you can try other tools...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help me in organizing the data in UNIX

I have an output file in the form Hostname Value1=abc Value2=def Value3=xyz Hostname1 Value1=abc1 Value2=def1 Value3=xyz1 Hostname2 Value1=abc2 Value2=def2 Value3=xyz2 | | | And so on….. I need to export this output into csv so then it should be in format (8 Replies)
Discussion started by: rahul2662
8 Replies

2. Shell Programming and Scripting

How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies

3. Shell Programming and Scripting

help with organizing some non regular text

hey im trying to get the hex diffrences in two files ones called new and the other is named old i want it to phrase into my script, heres how i need the info: input='\x'94 #the new 1 byte hex change offset=00000000 #the 1st offset of the difference patch unset input offset input='\x'34... (5 Replies)
Discussion started by: lewisdenny
5 Replies

4. Programming

Organizing C++ Code

I have three directories CspInterp, FpnInterp and LinInterp. Each directory contains 4 .h and .ccp files describing 4 classes each CspInterp class CspFsInterp1d : public FsInterp1d class CspVsInterp1d : public VsInterp1d class CspFsInterp2d : public FsInterp2d class CspVsInterp2d : public... (10 Replies)
Discussion started by: kristinu
10 Replies

5. Shell Programming and Scripting

Organizing log

Hello, Following are the log of my sms application COMMAND: #tail -30 /var/log/smsd.log | grep Message_id | awk '{print $1,$2,$9}' OUTPUT: 2011-02-21 12:16:20,5, 03218975857, 2011-02-21 12:16:26,5, 03323048252, 2011-02-21 12:16:53,5, 03323048252, 2011-02-21 12:16:59,5,... (1 Reply)
Discussion started by: telnor
1 Replies

6. Shell Programming and Scripting

Organizing Files

Hi, I'm fairly new at scripting. I need to write a script that takes files from a source directory puts them in a target directory and sorts them by artist name. This is what I have so far #!/bin/bash source_dir='/home/tcindy/songs' target_dir='/home/tcindy/music' for path in... (2 Replies)
Discussion started by: tcindy
2 Replies

7. Homework & Coursework Questions

Creating directories within a directory?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Ok i need to create a directory within another directory in one command. I'm already in a directory to. I need to... (6 Replies)
Discussion started by: gangsta
6 Replies

8. Shell Programming and Scripting

Organizing a log

I have a bunch of log files generated from a shell script, its all of my facebook friends and if theyre logged in. Each file is a different person. It runs every 5 minutes. The log file is just the date and time, then 1 if theyre logged in or 0 if theyre not. part of one of the files is: Mon Aug... (5 Replies)
Discussion started by: killer54291
5 Replies

9. Shell Programming and Scripting

going through files in a directory, and it's sub-directories

i have a c-shell script. and i pass it one or two arguments the first argument is the directory the second is the "-r" now, if i pass it only one, it searches the files ending in txt in that directory if i pass it two parameters, like "temp" and "-r" i want it to go through all the files and... (1 Reply)
Discussion started by: pantelis
1 Replies
Login or Register to Ask a Question