0
votes

I have a number of zip files located in a single folder eg:

file1.gz file2.gz file3.gz file4.gz

I'm looking for a way of automatically unzipping these using a batch job to a similarly named folder structure so for example the contents of file1.gz will drop into a folder named file1.

I have been told that 7zip would address my issue but can't figure out how to go about it.

Any help is greatly appreciated.

1

1 Answers

0
votes

Which OS are you using? This is something you'd do using the shell's capabilities, you could write

for A in *.gz ; do gunzip $A ; done

I'm using gunzip here, because .gz is actually gzip, But you can use the 7zip CLI tool as well, of course. If you're on Windows, then I recommend installing a real shell (the standard cmd.exe can not really be considered a shell IMHO).