batch gunzip
Default gunzip will unzip all gzipped file(s) in the current directory , while removing the original .gz file(s)
gunzip parameter “-c” can be used to output the unzip file to standard output , and capable to write the target file in another directory like below example which extracts “file1.gz” in current directory , and placed the output file : “file1” in DIR2
Below script “batch-gunzip.sh” can gunzip all *.gz in current dir to a pre-created target dir , while keeping the original *.gz files untouched
To run it :
./batch-gunzip.sh /TARGET_DIRECTORY