Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun NCAA) Newsgroups: comp.unix.questions Subject: Re: Supressing new-lines in awk output Summary: try 'printf' Keywords: awk Message-ID: <388@greens.UUCP> Date: 8 Feb 89 15:35:11 GMT References: <21638@conexch.UUCP> Organization: Sun Microsystems, Research Triangle Park, NC Lines: 17 In article <21638@conexch.UUCP>, root@conexch.UUCP (Larry Dighera) writes: > Is there a way to supress the newline at the end of awk's print output? Try using awk's printf command. If you don't include a '\n' in the format specifier, non will be printed. awk '{printf "%s ", $1} filename > Is there a way to cause each "$1" to be printed with a space delimiter Notice space in above example. A '\t' could also be used to insert a tab. -- Matthew Lee Stier (919) 469-8300| Sun Microsystems --- RTP, NC 27560| "Wisconsin Escapee" uucp: {sun, rti}!sunpix!matthew |