Using awk to only print the matching lines in two files
below is the code:awk 'FNR==NR{a[$0];next}($0 in a)' file2 file1
for more explanation please see below link:
using-awk-to-delete-lines-from-file
Saturday, December 29, 2012 awk 0 Comments
I am a software programmer working in India. I usually like to blog in my free time....Read More
0 comments: