[Jprogramming] Finding & expanding files
Skip Cave
skip at caveconsulting.com
Tue Nov 8 15:16:20 HKT 2011
Thanks Raul! Your hint allowed me to avoid using the overly verbose 7z.exe,
and use gzip instead, which doesn't pollute the stout with completion text:
filepth =: 'c:\Gzip\tsttxt.gz'
zipth =: '"c:\Gzip\gzip.exe -d -c "'
shell zipth, filepth
This is a test file 1 2 3 4 5 6 7 8 9 0
This is a test file 1 2 3 4 5 6 7 8 9 0
This is a test file 1 2 3 4 5 6 7 .... etc.
This is the contents of file tsttxt.txt file that printed out (with no
extra text!)...
Interestingly, the alternate 'spawn zipth, filepth' does not produce any
stdout, so the shell command is definitely required.
By the way, what is the difference between shell_jtask_ and shell? or
spawn_jtask_ and spawn?
Skip
On Sat, Nov 5, 2011 at 8:01 AM, Raul Miller <rauldmiller at gmail.com> wrote:
> Note that gzip also has an option to provide its result on stdout
> instead of replacing the file
>
> http://www.mkssoftware.com/docs/man1/gzip.1.asp
>
> -c (or --stdout)
>
> --
> Raul
>
More information about the Programming
mailing list