unix - (t)csh: how to "source" a gzip compressed text file? -


i looking unix command enables "source" text in gzip compressed text file.

if explanation not clear enough, mean command first unzips file , runs original command on it, zgrep, zcat, zless, etc. do

thanks!

elaborating shellter's approach, use

eval `gunzip -c file2source.gz|tr \\n \;` 

for simple scripts. (i simple because command lines in file concatenated 1 line.)

other that,

to unzip real file, , source that,

seems way.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -