Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!apple!claris!aimt!breck From: breck@aimt.UU.NET (Robert Breckinridge Beatie) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Summary: Doesn't he want: "tr -d '\015'"? Keywords: Help! Message-ID: <3222@aimt.UU.NET> Date: 2 Feb 90 02:20:52 GMT References: <5622@udccvax1.acs.udel.EDU> <1990Feb1.164704.23581@athena.mit.edu> <1990Feb1.193031.11699@iwarp.intel.com> Distribution: usa Organization: AIM Technology, Santa Clara, CA Lines: 21 In article <1990Feb1.193031.11699@iwarp.intel.com>, merlyn@iwarp.intel.com (Randal Schwartz) writes: > In article <1990Feb1.164704.23581@athena.mit.edu>, jik@athena (Jonathan I. Kamens) writes: > | tr -d "\012" < filename > filename.new > > Bzzzt. Can't combine that sorta quoting. tr will get '012' as an > argument, not '\012', so what you wanted was either: > "\\012" > or > '\012' Well, I've been wrong before, so I might be wrong now. But, isn't '\012' the same as '\n' or the new-line character? Didn't the original poster want to know how to strip '^M' or carriage-return characters from his uploaded files? Shouldn't he be coing a: tr -d '\015' < filename > filename.new ? -- Breck Beatie (408)748-8649 {uunet,ames!coherent}!aimt!breck OR breck@aimt.uu.net "2 does not equal 3. Not even for very large values of 2." - Roy Smith