Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Adding \r to report.txt
Here's a simple Perl filter, and the syntax to use it.
Call the filter unix2dos. You may already have this utility on your system.
while(<>) {
chomp; print "$_\r\n";
unix2dos < unix_file.txt > dos_file.txt
Jared
On Sun, 8 Oct 2000, Tom Pall wrote:
> OK, I've got the syntax to attach report.txt to an e-mail (using uuencode).
>
> How do I replace the \n at the end of each line in report.txt to a carriage return
> so I can open the attachment in notepad?
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Tom Pall
> INET: tom_at_cdproc.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
Jared Still
Certified Oracle DBA and Part Time Perl Evangelist ;-)
Regence BlueCross BlueShield of Oregon
jkstill_at_bcbso.com - Work - preferred address
Received on Tue Oct 10 2000 - 00:26:45 CDT