The UNIX and Linux Forums  


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



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
(awk) compare files in dir with an index file xthexonex Shell Programming and Scripting 4 02-21-2008 02:43 AM
compare two col from 2 files, and output uniq from file 1 pp56825 Shell Programming and Scripting 2 01-10-2008 11:10 AM
Compare two dates using Shell Programming dave_nithis Shell Programming and Scripting 4 01-04-2008 05:18 AM
Post Shell programming: Question about source a file and read data from the file ccwq Shell Programming and Scripting 3 08-04-2007 11:28 PM
compare 2 files, output dups to file blt123 UNIX for Dummies Questions & Answers 2 07-15-2004 11:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-07-2008
ravi214u ravi214u is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
Compare one file with 7 files in shell programming

hi ,

I am new to shell.
i have a requirement to compare the one file from one dir to other 7 files of other dir and to find out the duplicate files from the 7 files .
the name of the all files go on changing every weekend.


Thanks in advance
  #2 (permalink)  
Old 07-07-2008
nua7 nua7 is offline
Registered User
  
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 353
Code:
man diff
diff command is what you are looking for..
  #3 (permalink)  
Old 07-07-2008
ravi214u ravi214u is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
Compare one file with 7 files in shell programming

Hi thanks for ur reply but the requirement is that we have to check each file and if find duplicates in any file we have to redirect to some other file.
  #4 (permalink)  
Old 07-07-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,777
Do you mean duplicate files - meaning every row is the same - or do you mean files that have some duplicate rows?
  #5 (permalink)  
Old 07-07-2008
ravi214u ravi214u is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
thanks for reply i have to check both the conditions and than process forward
Closed Thread

Bookmarks

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 On




All times are GMT -4. The time now is 02:13 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-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0