Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!eos!shelby!portia!forel!karish From: karish@forel.stanford.edu (Chuck Karish) Newsgroups: comp.unix.questions Subject: Re: extracting "rest of line" in AWK Keywords: awk Message-ID: <4831@portia.Stanford.EDU> Date: 25 Aug 89 16:13:53 GMT References: <3368@blake.acs.washington.edu> Sender: USENET News System Reply-To: karish@forel.stanford.edu (Chuck Karish) Distribution: na Organization: Mindcraft, Inc. Lines: 14 In article <3368@blake.acs.washington.edu> mbader@cac.washington.edu (Mark Bader) wrote: >I have a line that looks like >%% Heading "This is a Graph Heading" >and I want to do a {print $3} to get the "This is a Graph Heading" part, >but this obviously dosen't work. Is there a way to do this? {for (num = 3; num <= NF; num++) {printf "%s ", $num}} {printf "\n"} Chuck Karish karish@mindcraft.com (415) 493-9000 karish@forel.stanford.edu