Search Results

Search: Posts Made By: ggupta
14,938
Posted By Scrutinizer
Try: awk '++A[$0]==2' file
Try:
awk '++A[$0]==2' file
50,404
Posted By vgersh99
f1: a b c d f2: e f g...
f1:

a
b
c
d


f2:

e
f
g



awk '{printf("file->[%s] NR->[%d] FNR->[%d] str->[%s]\n", FILENAME, NR, FNR, $0)}' f1 f2


output:
Showing results 1 to 2 of 2

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