Search Results

Search: Posts Made By: varu0612
1,175
Posted By Klashxx
Not sure if i understood correctly, but this may...
Not sure if i understood correctly, but this may helps:
# awk '{a[$NF]=sprintf("%s%s ",a[$NF],$1)}END{for (i in a){print i,a[i]}}' infile
1.1.1.1 app1 app3
1.1.1.2 app2
1.1.1.3 app4
4,498
Posted By alister
If $3>B[i] works with your awk implementation (I...
If $3>B[i] works with your awk implementation (I know it works with at least some mawk versions, if not all) then it's because it's violating POSIX. That should be performing a string comparison for...
2,086
Posted By tukuyomi
One way : ~/unix.com$ awk...
One way :
~/unix.com$ awk 'NR==FNR{A[$1]++;next}A[$1]==2' file.txt file.txt
2,086
Posted By pamu
Try this.. sort file | awk '/request/...
Try this..


sort file | awk '/request/ {s=$0;p=$1;getline} {if ($0 ~ /response/ && $1 == p) { print s"\n"$0 }}'
Showing results 1 to 4 of 4

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