I have a script that takes an input with a -i flag. The input file I have is compressed (.gz). What I want to do (not sure it's possible), because the file is huge, do some thing like this:
gunzip -c myfile.gz | myScript.pl -i STDIN -o myoutfile.txt
So pipe the output of the decompression to my scripts input flag.
myandscript. If you used-ofirst and then-iit would work (remove theSTDIN) – Seth Feb 10 '14 at 00:57