Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!boulder!skwu From: skwu@boulder.Colorado.EDU (WU SHI-KUEI) Newsgroups: comp.unix.shell Subject: Re: How to strip A NEWLINE Message-ID: <30545@boulder.Colorado.EDU> Date: 3 Dec 90 16:23:04 GMT References: <25665@uflorida.cis.ufl.EDU> <47601@sequent.UUCP> Sender: news@boulder.Colorado.EDU Reply-To: skwu@spot.Colorado.EDU (WU SHI-KUEI) Organization: University of Colorado, Boulder Lines: 6 Nntp-Posting-Host: spot.colorado.edu tr -d '\012' < file will strip newlines. Use 'sed' first if removing other stuff, e.g. sed 'whatever' file | tr -d '\012'