From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f70e8d71658d5c99 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-12-04 11:29:04 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!cyclone1.gnilink.net!cyclone.southeast.rr.com!news-post.tampabay.rr.com!twister.tampabay.rr.com.POSTED!53ab2750!not-for-mail From: Joseph Dionne Reply-To: jdionne@protobase.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: sending text file as attachement to Windows (Outlook) References: <1d08b916.0312040633.41aa5475@posting.google.com> <3FCF893F.41C6@maths.usyd.edu.au> In-Reply-To: <3FCF893F.41C6@maths.usyd.edu.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4WLzb.6889$b01.139426@twister.tampabay.rr.com> Date: Thu, 04 Dec 2003 19:29:04 GMT NNTP-Posting-Host: 24.73.214.242 X-Complaints-To: abuse@rr.com X-Trace: twister.tampabay.rr.com 1070566144 24.73.214.242 (Thu, 04 Dec 2003 14:29:04 EST) NNTP-Posting-Date: Thu, 04 Dec 2003 14:29:04 EST Organization: RoadRunner - Tampa Bay Xref: archiver1.google.com comp.unix.tru64:10991 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 ... >