Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!wuarchive!uunet!pmafire!uudell!bigtex!central!newstop!male!gizmo.UK.Sun.COM!matthew From: matthew@gizmo.UK.Sun.COM (Matthew Buller - Sun EHQ - MIS) Newsgroups: comp.unix.internals Subject: easy for some Message-ID: <6686@male.EBay.Sun.COM> Date: 3 May 91 08:15:27 GMT Sender: news@male.EBay.Sun.COM Lines: 24 I am fairly new to unix, and I have a minor question:- problem: to extract text between start and end patterns in a file eg:- file: pattern1--- stuff stuff stuff pattern2--- How do I write a short script (preferably /bin/sh) to extract the information between the start and end patterns (pattern1/pattern2) into a file. I have tried to grok the man page for `sed' but no luck. Any help would be appreciated. Tnx Matt