Path: utzoo!utdoe!ontmoh!attcan!utgpu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!sun-barr!newstop!jaytee!juggler!gaudreau From: gaudreau@juggler.East.Sun.COM (Joe Gaudreau - Sun BOS Software) Newsgroups: alt.hackers Subject: Re: mystery UNIX file Message-ID: <3669@jaytee.East.Sun.COM> Date: 19 Dec 90 17:03:56 GMT References: <1990Dec04.175617.5465@iecc.cambridge.ma.us> <51996@eerie.acsu.Buffalo.EDU> <52375@eerie.acsu.Buffalo.EDU> Sender: news@East.Sun.COM Reply-To: gaudreau@east.sun.com (Joe Gaudreau - Sun BOS Software) Organization: Sun Microsystems Inc. - BDC Lines: 68 Approved: GAUDREAU@JUGGLER Phil Goetz sez: >>IT IS UNIX. HERE IS UNIX. HOPE YOU HAVE FUN WITH IT. > >begin 0/unix.Z >MCS;0J.-@M=*M26_,RT_K_D8J"AZ"#TTJ6<%DSQT^042QT1=EZ?X.!7L^[BZ,:Q)$OA]-UB'O >MDX5+J,\7*\:'D<]L(2M1.0IGA/^2Y)"D_&WO?/TW.>>W88=D54Z73 _P9MI- >etc. the file has been compressed and uuencoded. To reverse this, you must first uudecode the file and then uncompress it. also, the first line would probably look better as: begin 666 unix.Z maybe it's a joke... assuming you don't have uudecode, try this (courtesy of rec.arts.startrek): This question has been asked before, many times, so I think many will find this useful. Here's the source code to a C program for uudecode. If you can compile C, or can translate it into a language you do have, this should solve your problems. David B. Mears Hewlett-Packard Cupertino CA hplabs!hpda!mears mears@hpinddf.cup.hp.com --------------- #include #define DEC(c) (((c) - ' ') & 077) main() { int n; char dest[128], a,b,c,d; scanf("begin %o ", &n); gets(dest); if (freopen(dest, "w", stdout) == NULL) { perror(dest); exit(1); } while ((n=getchar()) != EOF && (n=DEC(n))!=0) { while (n>0) { a = DEC(getchar()); b = DEC(getchar()); c = DEC(getchar()); d = DEC(getchar()); if (n-- > 0) putchar(a << 2 | b >> 4); if (n-- > 0) putchar(b << 4 | c >> 2); if (n-- > 0) putchar(c << 6 | d); } n=getchar(); } exit(0); } cheers, Joe -=-