Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!icdoc!sot-ecs!mrd From: mrd@ecs.soton.ac.uk (Mark Dobie) Newsgroups: comp.unix.questions Subject: Re: How to merge two files in awk?? Message-ID: <6383@ecs.soton.ac.uk> Date: 22 Jan 91 11:26:20 GMT References: <3404@d75.UUCP> Organization: University of Southampton, UK Lines: 19 In <3404@d75.UUCP> @xlab1.uucp writes: > Finally, how do u specify the "rest of the line" in awk?? I am a relative beginner with awk, but I ran into this problem too. My solution was to set the fields I wasn't interested in to "" and then use $0. eg $1 = "" ; print "rest of line is " $0 Is this a good way? Mark. -- Mark Dobie M.Dobie@uk.ac.soton.ecs (JANET) University of Southampton M.Dobie@ecs.soton.ac.uk (Bitnet)