|
Answer» Someone help PLEASE. I tried to do it with FINDSTR but I couldn't, so now I'm trying to OUTPUT the following numbers from this text file with gawk (what I need is in bold down below):
Analyzing pool.ntp.org (1 of 1)... delayoffset from local clock Stratum: 2
Warning: Reverse name resolution is BEST EFFORT. It may not be correct since RefID field in time packets differs across NTP implementations and may not be using IP addresses. pool.ntp.org[155.101.3.115:123]: ICMP: 73ms NTP: +0.0162516s RefID: 127-67-113-92.pool.ukrtel.net [92.113.67.127]
What I want to output is in bold. How can I do this with Gawk? With my limited knowledge I can only output: Code: [Select]+0.0162516s RefID But I would like to just have Code: [Select]0.0162516 Is this possible? Code: [Select]C:\test>gawk "/NTP:/{print $2}" file +0.0162516s
|