LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 11-11-2008, 11:51 AM   #1
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 200

Rep: Reputation: 30
Script to Compare Folder Structures and File Contents


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
 
Old 11-11-2008, 02:08 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
rsync? The source code of rsync might give you some inspiration.
 
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

Rep: Reputation: 35
Why is a recursive diff insufficient for your case?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 09:27 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration