RE: [SLUG] Adding a carriage return after each line in a file.

From: Mikes work account (mrock@stewartsigns.com)
Date: Tue Jan 08 2002 - 13:02:12 EST


There is an old unix command that will do that for you. I believe it is
dos2unix or something like that. Try this site for the command.

http://www.megaloman.com/~hany/RPM/dos2unix.html

Michael C. Rock

-----Original Message-----
From: slug@lists.nks.net [mailto:slug@lists.nks.net]On Behalf Of Brett
Simpson
Sent: Tuesday, January 08, 2002 11:34 AM
To: slug@nks.net
Subject: [SLUG] Adding a carriage return after each line in a file.

Hi,

Is it possible to add a carriage return after each line in a file? I know in
vi you can use CTRL-V to add a <CR> but I'm not sure how to automate it to
do it after each line. Each line is 856 bytes in size and corresponds to a
record. Also is their a way to do this from a script so I can automate
through cron every day. Thanks.

Brett



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:24:39 EDT