Quote:
Originally Posted by
nivas
awk ' NR==FNR { A[$0]=1; next; }
{ if (substr($0,1,8) in A) { A[$0]=0; } }
END { for (k in A) { if (A[k]!=1) { print k; } } } ' file1.txt file2.txt >out.txt
no output for this command
awk ' NR==FNR { A[substr($0,1,8)]=1; next; }
{ if (substr($0,1,8) in A) { A[substr($0,1,8)]=0; } }
END { for (k in A) { if (A[k]!=1) { print k; } } } ' file1.txt file2.txt >out.txt
pls try this