tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Chun, Sei \(SAP\)" <sei.chun () mwrdgc ! dst ! il ! us>
To: tru64-unix-managers
Subject: summary:   delete Line Feeder using vi editor?
Date: Wed, 29 Nov 2000 14:07:28 +0000	[thread overview]
Message-ID: <97550641311115.tru64-unix-managers.marc@archive.invalid> (raw)

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@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

             reply	other threads:[~2000-11-29 14:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-29 14:07 Chun, Sei (SAP) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-11-29 16:29 summary: delete Line Feeder using vi editor? Chun, Sei (SAP)
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox