Search Results

Search: Posts Made By: tomas.polak
3,436
Posted By Scrutinizer
You could try something like this: awk...
You could try something like this:
awk 'NR==FNR{A[$1]=1;next}/cmmac/&&!A[$2]{print p RS $0}{p=$0}' file1 file2
or
awk 'NR==FNR{A[$1]=1;next}{p=$0;getline}!A[$2]{print p RS $0}' file1 file2
3,436
Posted By ctsgnb
Please give an exemple of the wanted output ...
Please give an exemple of the wanted output

---------- Post updated at 12:22 PM ---------- Previous update was at 12:04 PM ----------

awk '{y=x;x=$0}$0~/cmmac/&&!A[$2]++{print "This record will...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 05:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy