^M 's in uploaded text files.

Larry Wall lwall at jpl-devvax.JPL.NASA.GOV
Fri Feb 2 08:31:40 AEST 1990


In article <1990Feb1.164704.23581 at athena.mit.edu> jik at athena.mit.edu (Jonathan I. Kamens) writes:
:   tr -d "\012" < filename > filename.new

That will delete line feeds.  You wanted

  tr -d "\015" < filename > filename.new


Since the original poster is already using vi, it's easier to say

	:%s/^V^M//

Larry Wall
lwall at jpl-devvax.jpl.nasa.gov



More information about the Comp.unix.questions mailing list