From: Bruce Harvey (BruceH@ROUTESCAPE.COM)
Date: Wed Apr 30 2003 - 14:40:07 EDT
tr "\012" " "
... either in a pipeline or redirecting input (<) should do the trick also.
Of course, if you didn't want the space, ...
tr -d "\012"
... assuming, of course, a UNIX-style newline-ended text file. You'd have
to add or change other 'record separators' of your own, but it probably uses
the least resources (and least typing ;-).
----------------------------------
Bruce T. Harvey (Special Projects)
----------------------------------------
bth@comcast.net -- bruceh@routescape.com
443-465-1204 (personal) -- 410-403-2390 (office)
-------------------------------------------
Insight Distribution Systems / CoAxis, Inc.
Hunt Valley, Maryland U.S.A. 21031-1422
-------------------------------------------
-----Original Message-----
From: Ferenc Gyurcsan [mailto:fgyurcsa@AVAILANT.COM]
Sent: Wednesday, April 30, 2003 2:35 PM
To: aix-l@Princeton.EDU
Subject: [aix-l]
cat <filename> | awk '{printf $0}'
should do it.
--Ferenc
-----Original Message-----
From: phsol [mailto:phsol@UOL.COM.BR]
Sent: Wednesday, April 30, 2003 2:29 PM
To: aix-l@Princeton.EDU
Subject:
I'd like to know what can I do to convert a whole text with
many lines into one single line .
Is there any command to do that ? We canīt use "vi" because
the file is very large and the process is scheduled .
Thanks.
--- UOL, o melhor da Internet http://www.uol.com.br/
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:47 EDT