LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Thread Tools
Old 11-11-2008, 11:51 AM   #1
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 172
Thanked: 0
Script to Compare Folder Structures and File Contents


[Log in to get rid of this advertisement]
Hi

I would like to know, can someone provide the link of script in solaris which can compare below things

1. No. of diff folders & files among two folders.
2. Contents of important configuration files among two folders.

For example :

I have to compare application folder say /opt/tomcat in test & production environment, in that case I can copy both the folders in common location and run the script, so that I can come to know the difference like "Beyond Compare" in windows.

Thanks in advance.

Thanks
Rajan
rajaniyer123 is offline     Reply With Quote
Old 11-11-2008, 02:08 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Sligo, Ireland
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,047
Blog Entries: 1
Thanked: 41
rsync? The source code of rsync might give you some inspiration.
irishbitte is offline     Reply With Quote
Old 11-11-2008, 02:31 PM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547
Thanked: 8
Why is a recursive diff insufficient for your case?
crisostomo_enrico is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
need help with bash script to compare file sizes rimvydazas Programming 3 04-03-2008 07:18 AM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 08:32 AM
compare folder contents babysnake Linux - Newbie 4 02-09-2007 08:04 AM
Script to compare file size nazs Programming 6 05-24-2006 11:10 AM
Bash script to compare dir contents Boffy Programming 2 08-02-2005 07:08 AM


All times are GMT -5. The time now is 12:22 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration