Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!hplabs!hpfcso!hpldola!hp-lsd!jimr From: jimr@hp-lsd.COS.HP.COM (Jim Rogers) Newsgroups: comp.unix.questions Subject: Re: -F option for awk Message-ID: <7370010@hp-lsd.COS.HP.COM> Date: 14 Aug 90 18:48:06 GMT References: <491@llnl.LLNL.GOV> Organization: HP Logic Systems Division - ColoSpgs, CO Lines: 11 The answer is to set up the output field separator to be a colon also. For instance: awk -F":" 'OFS = ":" { print $1, $2 }' /etc/passwd will print out the first two fields of the password file with the output fields separated by colons. Jim Rogers Hewlett Packard Company