Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!gwydir!gara!bburgess
From: bburgess@gara.une.oz (Bryan Burgess)
Newsgroups: comp.unix.wizards
Subject: Wanted - ALIAS Wizard
Keywords: alias and csh
Message-ID: <122@gara.une.oz>
Date: 15 Aug 88 02:37:42 GMT
Organization: University of New England, Armidale, Australia
Lines: 29

I have a little script I would like to convert to an alias in my .cshrc file,
however I have had no luck trying, I just can't seem to get the csh to ignor
the bits I don't want it to read, and to read the bits it should etc

Can anyone give me a script that will work, below is the one line script
and a sample data file

SCRIPT:

cat data | sed -n '/^#N[ 	]*'$1'/,/^[# 	]*$/p'

DATA:

#N fred
#U more stuff
#R hello

#N jim
#U even more stuff
#R ehehe

Please Email any replies to...

---------------------------+-----------------------------------------------
Bryan Burgess              |
University of New England  | ACSNET: bburgess@gara.une.oz
Armidale N.S.W. 2350       | UUCP: ...!uunet!munnari!gara.une.oz!bburgess
AUSTRALIA                  | ARPA: bburgess%gara.une.oz@uunet.uu.net
---------------------------+-----------------------------------------------