Hi, I have a file which has some contents in the pattern as shown below
<File contents > BEGIN: Mon Nov 30 00:06:03 2009 ----------------------------------------------------- Running Count: 1 Locked Count: 9 Sending Count: 0 Some contents XXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX BEGIN: Mon Nov 30 00:10:03 2009 ----------------------------------------------------- Running Count: 1 Locked Count: 10 Sending Count: 0 Some contents XXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX </File contents> I need a command to grep the four lines starting with Begin to sending count and paste in different file. How can i acheive this _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc