Goga Goga - 5 months ago 32
Linux Question

How to gunzip without delete?

How to unzip

all archives without delete in specified folder?

I tried:
gunzip *.gz /folder


can be done with some bash scripting using gzip --stdout option and compute the uncompressed name with bash substitution:

for i in *.gz
   echo unzipping $i to /folder/${i/.gz}
   gunzip --stdout "$i" > "/folder/${i/.gz}"

the current implementation fails with filenames containing spaces