Sorry, Guys, I get one more question here. Be default, "gzip -d " will unzip
a zipped file to the same location , is there a way to let it unzip to
another location which is different from the place where the zipped file is
located.
Thanks.
Xuedong
here’s one way: “gzip -d < file.gz >/other/dir/file”
(or “zcat file.gz >/other/dir/file”, which is the same thing)
regards,
rick
Xuedong Chen wrote:
Sorry, Guys, I get one more question here. Be default, "gzip -d " will unzip
a zipped file to the same location , is there a way to let it unzip to
another location which is different from the place where the zipped file is
located.
Thanks.
Xuedong
gzip -dc file > newfile
the ‘c’ flag tells it to decompress to stdout, preserving the original file.
cheers,
Kris
Xuedong Chen <Xuedong.Chen@igt.com> wrote:
Sorry, Guys, I get one more question here. Be default, "gzip -d " will unzip
a zipped file to the same location , is there a way to let it unzip to
another location which is different from the place where the zipped file is
located.
Thanks.
Xuedong
–
Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
“You’re bound to be unhappy if you optimize everything” - Donald Knuth