Hi,
Still not able to resolve ;-(
Below are the file details
==============================================
>cat file2
12345678901
98765432101
>cat file1
gsfgfgfgfgfgfgfgfgfg12345678901fgfgfgfgfgfgfgffgfgfsgfdg
gsfgfgfgfgfgfgfgfgfg12345678901fgfgfgfgfgfgfgffgfgfsgfdg
gsfgfgfgfgfgfgfgfgfg34578910204fgfgfgffgfgfggffgfgfsgfdg
==============================================
nawk isn't returning anything while comparing file1 & file2
=======================================================
>/usr/bin/nawk 'NR=FNR{a[substr($0,1,11)];next} substr($0,21,31) in a{print}' file2 file1
>awk 'NR=FNR{a[substr($0,1,11)];next} substr($0,21,31) in a{print}' file2 file1
awk: syntax error near line 1
awk: bailing out near line 1
=======================================================
whereis nawk
nawk: /usr/bin/nawk /usr/man/man1/nawk.1
>whereis awk
awk: /usr/bin/awk /usr/man/man1/awk.1
Please Help!