Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: OT: uuencode adding characters

RE: OT: uuencode adding characters

From: Chris Berry <compjma_at_hotmail.com>
Date: Fri, 28 Mar 2003 10:43:40 -0800
Message-ID: <F001.005756EF.20030328104340@fatcity.com>


>From: "Saira Somani" <saira_somani_at_yahoo.com>
>Can you give me a hint? So I use Perl to rid the file of these
>characters and then uuencode it and then use mail utility to send to
>people? Won't uuencode do the same thing again and add those characters
>back?

I haven't used uuencode, but basically what you need to do is:

1) Generate the file
2) Run uuencode
3) Clean it up with perl script
4) Email it

If you want to send me a copy of the uuencoded file, I'd be happy to take a look at it. Your perl code will look something like this:

#!perl

open INPUT_FILE, "<infile.txt";
open OUTPUT_FILE, ">outfile.txt";
while (<INPUT_FILE>) {

    &regex
}
close INPUT_FILE;
close OUTPUT_FILE;

sub regex {
}

Where the regex subroutine will contain the code which finds and eliminates the nasty characters you want to remove. If you're a minimalist, you could probably rewrite the whole thing to be a single inline statement using perl -p -i -e

Chris Berry
compjma_at_hotmail.com
Systems Administrator
JM Associates

"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." -- Duke Leto Atreides



The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Chris Berry
  INET: compjma_at_hotmail.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).
Received on Fri Mar 28 2003 - 12:43:40 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US