Date: Fri, 1 Oct 2010 18:13:17 -0400
Reply-To: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Subject: calling all Unix/Linux shell command experts
Content-Type: text/plain; charset="us-ascii"
The relevance of my question to the 'L has to do with a FILENAME pipe specification that will stream uncompressed data from a zip archive inside another zip archive. The US Census ftp site has an example at ftp://ftp2.census.gov/census_2000/datasets/Summary_File_3/New_Hampshire/ See all_New_Hampshire.zip .
A FILENAME of this form, FILENAME SF3geost PIPE "zcat ""path/NHgeo_uf3.zip"" ""path/NHgeo.uf3"" "; , works as hoped. Adding another level,
FILENAME afn PIPE " zcat ""path/all_New_Hampshire.zip | path/NH00001.zip"" ""path/NH00001.uf3"" "; ,
The zcat command executes with the Bourne shell, but should work (almost) the same in other shells. I've looked at various parameters for zcat and for related commands such as uncompress. Anyone have ideas about the magic formula for this pipe? My random guesses are affecting my schedules and what little sanity I have left.