SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-07-14 08:56:01

donkeyotay
#! CrunchBanger
From: Everywhere
Registered: 2011-01-28
Posts: 166

To compare two directory structures [Solved]

Morning All,
While re-organising my hdd over a period of several weeks, I have managed to get two Music folders

/Stuff/Music/
/Stuff/Dropbox/music/

I think that I have manually synchronised them, but I would like to confirm this. I've had a look at diff but that only seems to compare files (or have I missed something). Rsync seems the next choice but I can't work out I need to use.
Any help, as always, gratefully received.
Cordially
Simon

Last edited by donkeyotay (2012-07-14 11:11:59)


I didn't say it was your fault... I said I was going to blame you.

Offline

Be excellent to each other!

#2 2012-07-14 09:12:43

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,324

Re: To compare two directory structures [Solved]

Easy, peasy, and you already have part of the solution: diff
Here is how to:
(1)

cd /Stuff/Music
find . >/tmp/list1

(2)

cd /Stuff/Dropbox/music
find . >/tmp/list2

(3)

cd 
diff /tmp/list1 /tmp/list2

Last edited by xaos52 (2012-07-14 09:13:03)

Offline

#3 2012-07-14 10:15:25

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,201

Re: To compare two directory structures [Solved]

Another option is to install meld, a gui for file and folder comparison.


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#4 2012-07-14 11:11:40

donkeyotay
#! CrunchBanger
From: Everywhere
Registered: 2011-01-28
Posts: 166

Re: To compare two directory structures [Solved]

xaos52 as ever... Thank you smile


I didn't say it was your fault... I said I was going to blame you.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo