LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sort and combine Audio folders (https://www.linuxquestions.org/questions/linux-software-2/sort-and-combine-audio-folders-933927/)

Dman58 03-11-2012 03:30 PM

Sort and combine Audio folders
 
Hello all,

I have two folders full of music each around 70GB. For the most part they have duplicate info but 1 has more. How can I combine the 2 folders adding only the differences of each without making duplicates?

Any help or suggestion would be greatly appreciated. Thankyou!

sys64738 03-11-2012 05:24 PM

Hi Dman58,
if you have just duplicates concerning filenames how about:
Code:

cp -nv /path/to/source1 /path/to/destination
cp -nv /path/to/source2 /path/to/destination

The option -n will skip existing files being overwritten.
The option -v will print each copied file (to check what is being copied).

If you have nested directories use also -r (recursive).

Dman58 03-12-2012 06:50 AM

Thanks for the tip. I'll try it out & post back the results shortly.

Dman58 03-12-2012 10:43 AM

I'm unable to change directories to my external drive in the terminal. Only browsing through with konqueror, I can view my directory. When I use the command "df -h" the drive comes up as /dev/sdc1 466G 437G 29G 94% /media/My Book-3. In terminal I'm unable to get to these directories. I get the following message: bash: cd: /media/My: No such file or directory

sys64738 03-13-2012 10:13 AM

You're unable to change because you've spaces in your path. If you are using the bash shell try
Code:

cd /media/My[tab]
Where [tab] means press the tab-key.
that should end in something like
Code:

cd /media/My\ Book-3/
The reason is: Spaces, Tab and special characters have to be quoted for the shell. That can be done by putting a \ before each such character or
use " or ' around your path.

Dman58 03-13-2012 10:43 AM

I am away from home but I will try that as soon as I get back, probably tomorrow evening.

Thanks in advanced

Dman58 03-15-2012 09:19 AM

Thank you very much those steps worked. I have a lot to learn still especially around the command line.


All times are GMT -5. The time now is 08:50 AM.