How to merge two files in awk??
Mark Dobie
mrd at ecs.soton.ac.uk
Tue Jan 22 22:26:20 AEST 1991
In <3404 at 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 at uk.ac.soton.ecs (JANET)
University of Southampton M.Dobie at ecs.soton.ac.uk (Bitnet)
More information about the Comp.unix.questions
mailing list