Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-21-2008
Registered User
 

Join Date: Nov 2008
Posts: 16
comparing two files using shell script

hi experts

please help me to compare two files which are in different directory

file1<file will be master file>
(/home/rev/mas.txt}
ex x1
x2

file2 <will be in different folder>
(/home/rev/per/.....)
ex x3
x4
the filesinside per folder i need to compare with master file and the files inside the per are having some changes 3 and 4 but file name is same
so if i comapare i need to have the OUTPUT no difff for this ex

please help me i am new to this shell script and i have no idea


i need to compare this two files using shell scipt
Sponsored Links
  #2 (permalink)  
Old 11-21-2008
Registered User
 

Join Date: Nov 2008
Posts: 20
The rules clearly state no posting homework assignment... why can't you use "diff"? It's made for this thing.
  #3 (permalink)  
Old 12-01-2008
Registered User
 

Join Date: Nov 2008
Posts: 16
thank u
Sponsored Links
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Comparing two .txt files in shell scripting... prakash123 Shell Programming and Scripting 10 06-30-2008 10:36 PM
shell script for comparing 2 files prashanth.spl UNIX for Dummies Questions & Answers 2 06-20-2008 11:09 AM
comparing PID values of 2 Files in shell Options marconi Shell Programming and Scripting 2 12-19-2007 01:02 PM
Script error.. for comparing 2 files! gkrishnag UNIX for Advanced & Expert Users 4 09-13-2006 10:19 AM
shell script comparing files in a file raina_nalin Shell Programming and Scripting 4 06-21-2005 07:00 AM



All times are GMT -4. The time now is 11:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0