summary: delete Line Feeder using vi editor?

From: Chun, Sei \(SAP\) <"Chun,>
Date: Wed, 29 Nov 2000 08:07:28 -0600

Answer from Lucio Chiappetti
Thanks Lucio.

His note is below:


won't do it in vi.

The following script "removecr filename" takes care of this (can also do a
bunch of files at a time).

#!/bin/csh -f
foreach i ($argv)
tr -d '\015' < $i > temp.temp
mv -i temp.temp $i
end

Anyhow the trick is to use tr -d.

-----Original Message-----
From: Chun, Sei (SAP) [mailto:sei.chun_at_mwrdgc.dst.il.us]
Sent: Wednesday, November 29, 2000 6:02 AM
To: Tru64-Unix-Managers (E-mail)
Subject: delete Line Feeder using vi editor?


TruGurus -

We are using Advanced Server with Tru64 5.0A cluster servers, and constantly
we are fighting with NT format files vs. UNIX file formats.
If the file is NT format and read from vi, the output shows ^M.
Is there any way to remove those ^M with vi global substitution?
The example of vi screen dump is below.

Thanks in advance



#.**************************************************************************
****
^M
#.*
*
^M
#.* Instance profile DEV_D00_UXSAPD01
*
^M
#.* #.*
*
^M
#.**************************************************************************
****
^M
^M
#parameter created by: CHUNS 11/21/2000
16:24:30
^M
rdisp/wp_no_vb2 = 1^M
Received on Wed Nov 29 2000 - 14:02:34 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT