All Questions
7
questions
0
votes
1
answer
1k
views
Decompress all gz files in a tree
I am working on an Ubuntu 14 server.
Trying to create a tar.gz backup of my website, I accidentally gzipped every individual file in my /var/www/ directory, recursively. Now the whole tree consists ...
3
votes
2
answers
1k
views
How to tell of a GZip file is still being written while being copied
I am getting a gzip file in a path.
Input Folder Path:
<server>/input_gate
I want to check whether the GZIP file I am getting in this folder are valid?
I have used the following command. It ...
58
votes
6
answers
102k
views
How can I get the uncompressed size of gzip file without actually decompressing it?
Please find my OS details:
$ uname -a
AIX xxyy 1 6 000145364C00
I've tried the following command to get size of a file in gzip archive:
$ gzip -l mycontent.DAT.Gz
compressed uncompr. ratio ...
3
votes
1
answer
15k
views
Shell Script to GZIP files without overwrite .gz files
I'm trying to create a shell script which receive as first parameter of a path to a folder which I would like to compress all files using gzip without overwrite the .gz files that already exist in ...
15
votes
1
answer
45k
views
When using "gzip --decompress", the result is "gzip: MYFILE.zip: unknown suffix -- ignored" on Windows
In Windows PowerShell (if it matters), I would like to decompress a zip file with gzip with the argument --decompress, but unfortunately it doesn't work. Please look at the screenshot below.
gzip --...
0
votes
1
answer
1k
views
How to zgrep by file pattern and timestamp?
I have a list of several thousand gzip (*.gz) files that I'd like to zgrep through, but I only want to run it on files with a last-modified-timestamp on or after yesterday (11/22/2012) and that ...
12
votes
5
answers
18k
views
gzip all files without deleting them
I need to gzip all files in a dir separately including all files in sub-directories without deleting the originals afterwards.
So let's say I have index.html, I want to have at the end index.html.gzip ...