|Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.|
||Thread Tools||Search this Thread||Display Modes|
Help in grep function or similar using awk
I have a list of id;
for example: file 1
I have another data file that contain this ids as headers;
for ex. file2
I wanted to compare file 1 and file 2 such a way that the output list the ids that are present in file 1 but not present in file 2.
For ex. the id 'dfgeu' is present in file 1 but its absent in file 2.
I want to have this id (dfgeu)which is missing in file 2 as header to be outputed.
Is there a way in awk to do this comparison of 2 files?
Please let me know.
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Help with Grep Function||msbaath||UNIX for Dummies Questions & Answers||3||04-22-2009 11:36 AM|
|what is the similar command for "grep -v" in nawk?||prsam||UNIX for Dummies Questions & Answers||7||12-08-2008 08:19 AM|
|Similar OS to AIX||agasamapetilon||AIX||5||12-01-2008 01:16 PM|
|Passing global variable to a function which is called by another function||sars||Shell Programming and Scripting||4||06-30-2008 12:39 PM|
|how to get the similar function in while loop or for loop||trynew||Shell Programming and Scripting||3||06-17-2002 12:09 PM|