From: Joseph Dionne <jdionne@sdcnov1.sdcweb.net>
Subject: Re: sending text file as attachement to Windows (Outlook)
Date: Thu, 04 Dec 2003 19:29:04 GMT [thread overview]
Message-ID: <4WLzb.6889$b01.139426@twister.tampabay.rr.com> (raw)
In-Reply-To: <3FCF893F.41C6@maths.usyd.edu.au>
And for those non-perl users;
cat /tmp/file.txt | sed -e "s/$/^M/" | uuencode ...
"^M" enter with Ctrl-V, Ctrl-M
Paul Szabo wrote:
> MB wrote:
>
>
>>I would like to send a text file as an attachement to Windows outlook from
>>tru64 Unix.
>>
>># cat /tmp/file.txt | uuencode file.txt | mailx -s test someone@xzy.com
>>
>>This works, however when you view the file in notepad it doesn't look right.
>
>
> I guess the problem is the line termination: a single NL character (hex 0A)
> is used in UNIX, while Windows uses the two-character CR-LF (hex 0D 0A).
> Replace cat by:
>
> perl -pe 's/$/\r/' /tmp/file.txt | uuencode ...
>
next prev parent reply other threads:[~2003-12-04 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-04 14:33 sending text file as attachement to Windows (Outlook) MB
2003-12-04 19:21 ` Paul Szabo
2003-12-04 19:29 ` Joseph Dionne [this message]
2003-12-04 20:00 ` Adam Price
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox