Re: changing CRLF to just LF in AIX file

From: Adams Kevin J (kevin.adams@PHS.COM)
Date: Mon Nov 04 2002 - 13:09:59 EST


Joe,

There's two ways to do this:

1) If you have VIM, you can edit the file and enter "set fileformat=unix"
and then write quit the file.

2) If you have perl, you can: cat file | perl -pe ";"
        or from within VIM as: :%!perl -pe ";"

Kevin Adams
-----Original Message-----
From: Leyden, Joseph [mailto:LeydenJ@MTA.NET]
Sent: Thursday, October 24, 2002 10:22 AM
To: aix-l@Princeton.EDU
Subject: [aix-l] changing CRLF to just LF in AIX file

If this is changing all CR-LF(hex:0D0A) to BLANKS
:%s\(ctrl v)(ctrl m)\ \g
how do I just change it to LF (hex:0A)
thanks in advance,
Joe Leyden

This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.

If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:18 EDT