From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97551490800198.tru64-unix-managers.marc@archive.invalid> From: "Chun, Sei \(SAP\)" Date: Wed, 29 Nov 2000 16:29:07 +0000 To: tru64-unix-managers Subject: summary: delete Line Feeder using vi editor? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97551490800198 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