The OP deleted his question, for clarity, this was the request:
Quote:
Output of his command "./new < numbers.txt ":
hi how are you
what are you doing
or am i sleeping
the zebra ate the lion
yes sir
a banana fell
File datafile.txt:
a
the
or
Desired output:
hi how are you
what are you doing
yes sir
|
Try this:
Code:
./new < numbers.txt | awk '
BEGIN{while(getline < "datafile.txt" > 0 ) {
arr[$1]=$1
}
close("datafile.txt")
}
!arr[$1]{print}
'
Regards