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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can I know find syntax to find given date files bache_gowda Shell Programming and Scripting 3 03-26-2008 03:37 AM
Find duplicates from multuple files with 2 diff types of files ricky007 Shell Programming and Scripting 2 03-04-2008 10:46 AM
Little bit weired : Find files in UNIX w/o using find or where command jatin.jain Shell Programming and Scripting 10 09-19-2007 03:47 AM
how to find duplicate files with find ? umen Shell Programming and Scripting 8 09-04-2006 12:01 AM
Find files older than 20 days & not use find halo98 Shell Programming and Scripting 2 05-18-2006 11:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 04-30-2008
Registered User
 

Join Date: Apr 2008
Posts: 11
hope this one helps for you

awk '{ chk_str="grep ^"$0"$ ./file2_name" ; system(chk_str) }' file1_name
Reply With Quote
Forum Sponsor
  #9  
Old 04-30-2008
drl's Avatar
drl drl is online now
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 554
Hi.

The command comm finds simple differences and the intersection between the contents of two sorted files. Here is the latter:
Code:
% comm -12 file1 file2
Producing:
Code:
entry2
See the man page for details ... cheers, drl
Reply With Quote
  #10  
Old 05-03-2008
Registered User
 

Join Date: Mar 2008
Posts: 83
Smile

Quote:
Originally Posted by makrami View Post
its give me nothing
It is working fine for me.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0