Sample Header Ad - 728x90

Gunzip all the files with a given extension in a different folder

1 vote
2 answers
193 views
I have a folder with 28 gz files with the extension .gz and 28 files with the extension .gz.bam. I would like to unzip all the 28 .gz files and send them to another folder. I was doing one by one as follows:
gunzip -c file1.gz > /mnt/s3/data_transfer/file1
How can I specify I want the .gz and not the .gz.bam?
Asked by RoyBatty279 (33 rep)
Oct 11, 2022, 10:18 AM
Last activity: Oct 11, 2022, 10:41 AM