Computing.Net > Forums > Windows XP > Printing Prev Lines Using Awk?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Printing Prev Lines Using Awk?

Reply to Message Icon

Name: vinodjadye
Date: July 25, 2007 at 09:03:45 Pacific
OS: Linux
CPU/Ram: Intel
Product: Dell
Comment:

Hi,
I am pasting the contents of the file below. I will get similar occurances more than 50 times in one file. I need to search for the string "End the test" and then print 11th or 12th line before this line (the one with timestamps). Please test your code & send it to me.
Thx in advance

Timestamp: Wed Jul 18 04:04:23 PM EDT 2007

Starting Traffic for 20 seconds...
Frame Size: 100
2/3 -> TX Frames: 1132112
2/3 -> RX Frames: 1132112
2/3 -> RX Min Latency: 314.02 usec
2/3 -> RX Max Latency: 44480.08 usec
2/3 -> RX AVG Latency: 6103.62 usec
2/3 -> 2/3 Loss: 0
2/3 -> 2/3 Loss Ratio %: 0.000000000

End the test, we are at max rate: 5.133056640625

Frame Sizes (bytes): 100
Rate (%): 5.13
Avg Latency (usec): 6103.62
Min Latency (usec): 314.02
Max Latency (usec): 44480.08

Vinod



Sponsored Link
Ads by Google

Response Number 1
Name: Curt R
Date: July 25, 2007 at 09:47:21 Pacific
Reply:

You should really post this in the linux/UNIX forum.


0

Response Number 2
Name: Mechanix2Go
Date: July 25, 2007 at 11:06:54 Pacific
Reply:

Didn't we go through this already?

http://computing.net/programming/ww...



=====================================
If at first you don't succeed, you're about average.

M2



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Printing Prev Lines Using Awk?

Printing in DOS using XP www.computing.net/answers/windows-xp/printing-in-dos-using-xp/177216.html

printing from dos using XP www.computing.net/answers/windows-xp/printing-from-dos-using-xp/16300.html

font size printing in OE6 www.computing.net/answers/windows-xp/font-size-printing-in-oe6/166570.html