Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!xanth!ames!amdcad!sun!pitstop!sundc!seismo!uunet!ccicpg!turnkey!conexch!root From: root@conexch.UUCP (Larry Dighera) Newsgroups: comp.unix.questions Subject: Supressing new-lines in awk output Keywords: awk Message-ID: <21638@conexch.UUCP> Date: 3 Feb 89 06:35:38 GMT Organization: The Consultants' Exchange, Orange County, CA Lines: 29 Is there a way to supress the newline at the end of awk's print output? Given: awk '{print $1}' filename Where filename contains: field1.1 field1.2 field2.1 field2.2 field3.1 field3.2 awk will print the first field of each record on a seperate line: field1.1 field2.1 field3.1 Is there a way to cause each "$1" to be printed with a space delimiter instead, such that the output would look like: field1.1 field2.1 field3.1 -- USPS: The Consultants' Exchange, PO Box 12100, Santa Ana, CA 92712 TELE: (714) 842-6348: BBS (N81); (714) 842-5851: Xenix guest account (E71) UUCP: conexch Any ACU 2400 17148425851 ogin:-""-ogin:-""-ogin: nuucp UUCP: ...!uunet!turnkey!conexch!root || ...!trwrb!ucla-an!conexch!root