Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!uflorida!haven!umbc3!rostamia From: rostamia@umbc3.UMBC.EDU (Dr. Rouben Rostamian) Newsgroups: comp.unix.questions Subject: Help a novice: Will "sed" do? Keywords: Automatic edits. Sed. Message-ID: <2180@umbc3.UMBC.EDU> Date: 16 Jul 89 23:14:01 GMT Organization: Univ of Maryland Baltimore County Lines: 16 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@umbc2.bitnet Baltimore, MD 21228 rostamia@umbc3.umbc.edu