Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Bash shell programming: comparing directories
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
deltatux




PostPosted: Sat Oct 25, 2008 7:08 pm   Post subject: Bash shell programming: comparing directories

Hi,

I've been tasked to create a bash shell script to compare directories and only list out the differences between the two directory.

Does anyone have any ideas or pointers of how to go about this problem?

deltatux
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Sat Oct 25, 2008 7:11 pm   Post subject: RE:Bash shell programming: comparing directories

Look into dircmp: http://www.computerhope.com/unix/udircmp.htm

And diff if you want the diffrences between each file: http://www.computerhope.com/unix/udiff.htm
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
btiffin




PostPosted: Sat Oct 25, 2008 8:36 pm   Post subject: RE:Bash shell programming: comparing directories

Or, some more hints

look into sort and uniq for old timer ways of attacking this one

Cheers
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: