Help a novice: Will "sed" do?

Dr. Rouben Rostamian rostamia at umbc3.UMBC.EDU
Mon Jul 17 09:14:01 AEST 1989


I need a command or a script that searches a text file for a given
word or pattern and prints out all paragraphs that contain that word
or pattern.  Paragraphs are blocks of text separated by one or 
more blank lines.

I am new to unix so I don't even know where to look.  Sed seems to be 
promising but I have not been able to get it do this.  Any
hints or suggestions?  Maybe another utility? 

Thanks.

-- 
Rouben Rostamian
Department of Mathematics                      e-mail:
University of Maryland Baltimore Counnty       Rostamian at umbc2.bitnet
Baltimore, MD 21228                            rostamia at umbc3.umbc.edu



More information about the Comp.unix.questions mailing list