Xref: utzoo comp.sys.3b1:449 unix-pc.general:7535 comp.sys.att:11872 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!news.nd.edu!spool.mu.edu!samsung!zaphod.mps.ohio-state.edu!rpi!masscomp!ocpt!tsdiag!hico2!sonyd1.Broadcast.Sony.COM!bruce From: bruce@sonyd1.Broadcast.Sony.COM (Bruce Lilly) Newsgroups: comp.sys.3b1,unix-pc.general,comp.sys.att Subject: Re: ".GIF" files Message-ID: <1991Feb22.134247.19424@sonyd1.Broadcast.Sony.COM> Date: 22 Feb 91 13:42:47 GMT References: <1991Feb6.215717.26551@cbnewsj.att.com> <1991Feb7.204039.5842@sonyd1.Broadcast.Sony.COM> <993@gnosys.svle.ma.us> Organization: Sony Business and Professional Group, Montvale, NJ Lines: 34 In article <993@gnosys.svle.ma.us> gst@gnosys.svle.ma.us (Gary S. Trujillo) writes: >In <1991Feb7.204039.5842@sonyd1.Broadcast.Sony.COM> > bruce@sonyd1.Broadcast.Sony.COM (Bruce Lilly) writes: > >>cat filename.gif | remsh cray giftoppm '|' ppmtopgm '|' pgmtopbm | pbmto3b1 >>:-) > >I've never understood why some people insist on using cat(1) to get stuff >into the standard input of the lead program in a pipeline. I claim that: > > cat a | b | c > >is entirely equivalent in result to: > > b < a | c > >Right? Yes, it could have been: < filename.gif remsh cray giftoppm '|' ppmtopgm '|' pgmtopbm | pbmto3b1 (it was based on a pipeline using cat in the previous posting, and was intended as humour (note the smiley)-- the previous poster asked if there was a way to do the conversion in less than 3 minutes) Note that I've put the redirection first above; that preserves the data flow from left to right, which is also evident in the pipeline using cat. -- Bruce Lilly, Product Manager, | bruce@Broadcast.Sony.COM Digital Television Tape Recording, | uunet!sonyusa!sonyd1!bruce Sony, 3 Paragon Drive, Montvale, | lilb@sony.compuserve.com (slow) NJ 07645-1735 | Telephone: 1(201)358-4161 | FAX: 1(201)358-4089 Brought to you by Super Global Mega Corp .com