Search Results

Search: Posts Made By: rbadveti
9,758
Posted By RudiC
Not sure if this is the most elegant solution: ...
Not sure if this is the most elegant solution:
awk '
/^====/ {PRF = $2 = "0"$2
}
{print PRF, $0
}
' file |
sort -uk1,1 -k3 |
awk '
{X = $1
CNT[X]++...
9,758
Posted By RudiC
Try awk '/^====/ {PRF = $2 = "0"$2} {print...
Try
awk '/^====/ {PRF = $2 = "0"$2} {print PRF, $0}' file | sort -uk1,1 -k3 | awk '{sub ($1 FS, _); sub (/^0/, _, $2)}1'
========== server_1 ==========
sample2.gz: 2016-09-14 01:09:56,796...
Showing results 1 to 2 of 2

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