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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 10-04-2006
Raynon Raynon is offline
Registered User
  
 

Join Date: Sep 2006
Location: Sg
Posts: 350
Quote:
Originally Posted by vino
Try this.

Code:
sed -n -e '/05T00NPQSMR1/,/^\**/p' input.txt


Else this.

Code:
sed -n -e '/05T00NPQSMR1/,/^[*]*/p' input.txt

At the moment, I dont have access to a unix terminal to test this.
Hi, the output seems far from what i wanted. See below.

Output:
** 05T00NPQSMR1 P98P2234 Tue 10 03 09:57:24 2006
** dibid= 1166 testerid= 6
** 05T00NPQSMR1 P98P2234 Tue 10 03 09:57:24 2006
** dibid= 1166 testerid= 6