The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-07-2009
asadlone asadlone is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 44
innovating with grep command

Hi,

I want to grep a particular number such as 2111111111 and then the next 4 lines to it in the file. How can i do it? or to rephrase it i want to grep 2111111111 and then grep corresponding Term. cause and Mapped error

Rt 07-01 07:16:51 100 2111111111 2222222222 22132133121231232 23312213123120 0 0 2 Delivered
07-01 10:17:18 - delivery time
Term. cause : 100 - Message Delivery Successful
Mapped error : 0 -
Local error : 0 -


Thanks...