pattern1,patern2 {statement(s)}

pattern1,patern2 {statement(s)}

accountant

Adam Brick

1234 Wall Ave.

New York, NY 01021

doctor - ophthalmologist

Dr. Seizure

1111 Where St.

Murray Hill, NJ 00821

lawyer

Adam Collects

1234 Liability Ave.

Sheister City, NJ 10821

doctor - general practitioner

Dr. Susan Knows

1314 Checkup Street.

Kingston, NY 10021

$ awk ' /^doctor/, /^$/ ' list doctor - ophthalmologist

Dr. Seizure

1111 Where St.

Murray Hill, NJ 00821

doctor - general practitioner

Dr. Susan Knows

1314 Checkup Street.

Kingston, NY 10021

Previous slide Next slide Back to the first slide View Graphic Version