LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2012, 03:30 PM   #1
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Rep: Reputation: 31
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!
 
Old 03-11-2012, 05:24 PM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
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).
 
Old 03-12-2012, 06:50 AM   #3
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Original Poster
Rep: Reputation: 31
Thanks for the tip. I'll try it out & post back the results shortly.
 
Old 03-12-2012, 10:43 AM   #4
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Original Poster
Rep: Reputation: 31
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
 
Old 03-13-2012, 10:13 AM   #5
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
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.
 
Old 03-13-2012, 10:43 AM   #6
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Original Poster
Rep: Reputation: 31
I am away from home but I will try that as soon as I get back, probably tomorrow evening.

Thanks in advanced
 
Old 03-15-2012, 09:19 AM   #7
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Original Poster
Rep: Reputation: 31
Thank you very much those steps worked. I have a lot to learn still especially around the command line.
 
  


Reply



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
Is there a sort of 2nd SSH daemon server, sort of JAILKIT, in the debian repositories frenchn00b Debian 5 06-20-2010 04:03 AM
Trying to combine two video clips containing different .wav audio -wavs too different Lyle Linux - Software 1 06-12-2010 06:45 AM
php sort help - sort numerical descending then by alphabetical? RavenLX Programming 3 03-11-2009 08:35 AM
How can I combine three different bacup folders without loosing data commandante Linux - Desktop 3 05-30-2007 11:11 PM
Is there a line limit with the sort utility? Trying to sort 130 million lines of text gruffy Linux - General 4 08-10-2006 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:40 AM.

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