I want to unzip files which are in *.csv.gz format to .csv format.
When I tried with these commands $ gzip -d file.gz
and $ gzip -f file.gz
, it is showing like
gzip: IQ.gz: No such file or directory
gzip: Envoy.gz: No such file or directory
gzip: compressed data not read from a terminal. Use -f to force decompression.
For help, type: gzip -h
Please help me on this to how to unzip.
find . -name '*.csv.gz' -print0 | xargs -0 -n1 gzip -d
Should sort you, alternatively:
find . -name '*.csv.gz' -exec gzip -d {} \;
will also work. These are recursive so they will go into subdirs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With