Computer Science Canada

Bash shell programming: comparing directories

Author:  deltatux [ 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

Author:  Dan [ 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

Author:  btiffin [ 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


: