LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-02-2011, 03:24 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Diff on 2 different directories


How can I display only the folders that have changed inside of two different directories?

PHP Code:
diff -/usr/lib/perl5 /home/test/Download/perl5 grep -'^Only' 
Will this suffice?

I am trying to see what new directories were added between my working build and a new onefor a project that I working on. thanks

Last edited by metallica1973; 03-02-2011 at 03:36 PM.
 
Old 03-02-2011, 03:41 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I guess this would work.

This will show a brief description -q:

recursively -r

ignores white spaces -b

PHP Code:
diff -rqb /usr/lib/perl5 /home/test/Download/perl5 
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting git-diff --color-words as git-diff potuz Linux - Software 5 09-09-2010 01:31 PM
diff on directories with links not working? jiobo Linux - Newbie 3 11-25-2009 07:03 PM
How to compare timestamp of same file residing in two diff directories prasenjit.patra AIX 1 10-21-2009 04:45 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 12:23 PM
Dual Boot diff Hard Disk diff OS on Suse 9.1 wilhem Linux - Newbie 1 08-13-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:13 PM.

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