Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print out to 2nd blank line..... 1

Status
Not open for further replies.

jdespres

MIS
Aug 4, 1999
230
US
I would like to print everything between two points....

From CLIENT --- to ---> 2nd blank line

CLIENT = SantaCluas
blank_line
data
data
data
data
data
data
blank_line

I know how to between CLIENT --- to ---> 1st blank line..

But not to 2nd blank_line...

Thanks,

Joe Despres
 
One way:
Code:
awk '/^CLIENT/{f=1}f{print}!NF{f=(f==1?2:0)}' /path/to/input

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hey PHV...................

That worked!

Thanks!

Joe Despres
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top