tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* summary:   delete Line Feeder using vi editor?
@ 2000-11-29 14:07 Chun, Sei (SAP)
  0 siblings, 0 replies; 2+ messages in thread
From: Chun, Sei (SAP) @ 2000-11-29 14:07 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* summary:   delete Line Feeder using vi editor?
@ 2000-11-29 16:29 Chun, Sei (SAP)
  0 siblings, 0 replies; 2+ messages in thread
From: Chun, Sei (SAP) @ 2000-11-29 16:29 UTC (permalink / raw)
  To: tru64-unix-managers

Hi Tru64 Gurus.

My previous summary from Lucio is working fine, however, the statement
"won't do it in vi" is not a correct comment for my Tru64 5.0A.

There is a way to do that in vi and thanks for the help from the vi gurus.
The syntax is


:%s/(hit control-v then control-m, then it will show ^M)//g


also, I can use dos2unix & unix2dos utilities from my server.
I do not know that the utility is from the Advanced Server or the Unix 5.0a
itself.

I have so many helps from the gurus so that I will not post all of the names
here.


Thanks a lot, and tell you what.  I cannot live without this group!






-----Original Message-----
From: Chun, Sei (SAP) 
Sent: Wednesday, November 29, 2000 8:00 AM
To: Tru64-Unix-Managers (E-mail)
Subject: summary: delete Line Feeder using vi editor?


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-29 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-29 14:07 summary: delete Line Feeder using vi editor? Chun, Sei (SAP)
  -- strict thread matches above, loose matches on Subject: below --
2000-11-29 16:29 Chun, Sei (SAP)

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