|Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions 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|
|what is the similar command for "grep -v" in nawk?||prsam||UNIX for Dummies Questions & Answers||7||12-08-2008 07:19 AM|
|Similar OS to AIX||agasamapetilon||AIX||5||12-01-2008 12:16 PM|
|Passing global variable to a function which is called by another function||sars||Shell Programming and Scripting||4||06-30-2008 11:39 AM|
|how to get the similar function in while loop or for loop||trynew||Shell Programming and Scripting||3||06-17-2002 11:09 AM|