[comp.unix.questions] uudecode to stdout?

pjs@euclid.jpl.nasa.gov (Peter Scott) (11/17/90)

I would like to be able to send the output of uudecode to
standard output so I can pipe it to other things, but it
seems to require an actual file.  I suppose I could modify
the "begin" line with sed to send to a file in /tmp, then
cat that file and remove it, but... yech.  Anyone got any
ideas that don't require writing C code?

-- 
This is news.  This is your       |    Peter Scott, NASA/JPL/Caltech
brain on news.  Any questions?    |    (pjs@euclid.jpl.nasa.gov)

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (11/17/90)

In article <1990Nov16.180453.1663@elroy.jpl.nasa.gov> pjs@euclid.jpl.nasa.gov writes:
: I would like to be able to send the output of uudecode to
: standard output so I can pipe it to other things, but it
: seems to require an actual file.  I suppose I could modify
: the "begin" line with sed to send to a file in /tmp, then
: cat that file and remove it, but... yech.  Anyone got any
: ideas that don't require writing C code?

How 'bout this?

    perl -ne 'next if 1../begin/; last if /end/; print unpack("u",$_)' in >out

Larry Wall
lwall@jpl-devvax.jpl.nasa.gov