FG

How to GZIP all the files or a list of files from some path?

Fresh3 days ago
Mar 15, 202678167 views
Confidence Score0%
0%

Problem

I know that gzip compress a file, but I would want to know. How to compress a list of files, each file in their own GZIP file ? I need to use the list of a folder: ls log.2011 And for each file create a zipped file. Any ideas ?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to GZIP all the files or a list of files from some path?

Low Risk

will always compress each file into a single .gz file when given a list of files on its command line. For example to recursively walk the log.2011 directory and compress all files it finds, or to compress only the files in the log.2011 directory wit…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment