Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!think!snorkelwacker!spdcc!esegue!johnl From: johnl@esegue.segue.boston.ma.us (John R. Levine) Newsgroups: comp.unix.questions Subject: Re: Deleting newlines Message-ID: <1990Jan5.033215.5337@esegue.segue.boston.ma.us> Date: 5 Jan 90 03:32:15 GMT References: <990@manta.NOSC.MIL> Reply-To: johnl@esegue.segue.boston.ma.us (John R. Levine) Distribution: usa Organization: Segue Software, Cambridge MA Lines: 13 In article <990@manta.NOSC.MIL> barajas@manta.NOSC.MIL (Albert A. Barajas) writes: >Is there a quick and dirty way to delete newlines >from an ascii text file? tr -d \\012 < input > output you might want to get rid of carriage returns, too: tr -d \\012\\015 < input > output -- John R. Levine, Segue Software, POB 349, Cambridge MA 02238, +1 617 864 9650 johnl@esegue.segue.boston.ma.us, {ima|lotus|spdcc}!esegue!johnl "Now, we are all jelly doughnuts."