Path: utzoo!utgpu!watmath!att!dptg!rutgers!sun-barr!apple!brutus.cs.uiuc.edu!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!sunny!poage From: poage@sunny.ucdavis.edu (Tom Poage) Newsgroups: comp.unix.questions Subject: Re: extracting "rest of line" in AWK Message-ID: <423@sunny.ucdavis.edu> Date: 30 Aug 89 23:44:27 GMT References: <3368@blake.acs.washington.edu> <671@lakart.UUCP> Reply-To: poage@sunny.ucdavis.EDU (Tom Poage) Distribution: na Organization: UCDMC Clinical Engineering, Sacto., CA Lines: 21 To extract the third argument from %% Heading "This is a Graph Heading" try /^%% Heading/ { n = split($0, array, "\"") print array[2] } which will produce This is a Graph Heading Tom. -- Tom Poage, Clinical Engineering Universiy of California, Davis, Medical Center, Sacramento, CA poage@sunny.ucdavis.edu {...,ucbvax,uunet}!ucdavis!sunny!poage