For Programmers: Free Programming Magazines  


Home > Archive > AWK > November 2004 > How to print previous line









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to print previous line
Yaap

2004-11-21, 8:55 pm

Hi,

I need to find in file line with the given pattern.
Then print the previous line with line number.
How can I do it using 'awk' ?


--
Regrads
Yaap
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com