Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!cshort From: cshort@nmsu.edu (Spmg*d, Lord of Potted Meat Product) Newsgroups: comp.unix.shell Subject: help me do grep Message-ID: Date: 25 Feb 91 20:57:45 GMT Sender: news@NMSU.Edu Distribution: comp Organization: Computing Research Lab Lines: 39 hi i have some large protien files that i am trying to search for keywords and when they are found, print specific areas of text around it. let me be more clear: this is what my text looks like: /// entry title date accession reference superfamily sequence /// if i get a hit on accession, i would like to print the whole record. the reason i am not running this through a database is the file is about 19megs thanks |----------------------|---------------------- | |the world is spam and | Chris Short | | we are but the key | Computing Research Labatory | |--------|-------------| Box 30001/3 CRL | | New Mexico State University | | Las Cruces, NM 88003-0001 | | Email: Cshort@nmsu.edu Fax:505 646 6218|-------------------| | Voice: 505 646 6216 |SpamKey productions| | -------------------------|-------------------| Brought to you by Super Global Mega Corp .com