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