1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 5802
/ 3 Years ago, thu, october 14, 2021, 3:03:48
I have two text files A.txt and B.txt. Each line of A.txt A.txt
100
222
398
B.txt
1 2 103 2
4 5 1026 74
7 8 209 55
10 11 122 78
What I am looking for is an awk command for doing this:
for each line of A
search B;
if (the value of third column in a line of B - the value of the variable in A > 10)
print that line of B;
More From » bash