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 -->
  #13 (permalink)  
Old 05-16-2008
finalight finalight is offline
Registered User
 

Join Date: May 2008
Posts: 51
thanks era, your method works however.


erm, i got another question though

Quote:
xxx 254 xx 40 HC M U02 25 6 4 0
*space* xx 20 GP H U02 27 3 1 0
*space* xx 20 GP U U02 27 3 1 0
*space* xx 40 HC X U02 25 4 3 0
*space* xx 40 HC U U02 25 6 1 0
*space* xx 20 GP L U02 27 3 1 0
the file indentation for that part is actually like that as of above (well almost, the xx is align with the xx). However, different files has different number of line for that.
However, after the data is done showing, the next line will always be a empty space (or "\n" if what you guys call it)

so how do I extract those data and ignore the 'x254'?
Reply With Quote