The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-15-2007
summer_cherry summer_cherry is offline
Registered User
 

Join Date: Jun 2007
Location: Beijing China
Posts: 557
my opinion

Hi, i think what you want is difficult to realize.

1>the NR has gone to the last line.
2>At the END module for awk, it has gone to the end of the file, so you can not re-hold the line of the file

So,my suggestion for you is:
1> try to remember all the desired rows in first awk
2>awk again
Reply With Quote