dstevens66
Programmer
I want to unzip a compressed file to another file in another directory.
I thought I could use:
gzip -d /folder/datafile.dat.gz > /otherfolder/newfile.dat
where newfile.dat would have the uncompressed contents of datafile.dat.gz. I want datafile.dat.gz to remain unchanged.
When I try the command I wrote above, I get an empty /otherfolder/newfile.dat. I know there are some lines of data in /folder/datafile.dat.gz. The file datafile.dat.gz is now datafile.dat.
I'm not a unix scripting guru (obviously) hopefully there is something simple I'm missing. thanks
I thought I could use:
gzip -d /folder/datafile.dat.gz > /otherfolder/newfile.dat
where newfile.dat would have the uncompressed contents of datafile.dat.gz. I want datafile.dat.gz to remain unchanged.
When I try the command I wrote above, I get an empty /otherfolder/newfile.dat. I know there are some lines of data in /folder/datafile.dat.gz. The file datafile.dat.gz is now datafile.dat.
I'm not a unix scripting guru (obviously) hopefully there is something simple I'm missing. thanks