/Software Development

gunzip Multiple Files in Different Subdirectories

Recently I had to unzip a lot of files located in subdirectories. To do this, I used a combination of the “find” and “gunzip” commands in Ubuntu:

 find \* -maxdepth 1 -name '\*.gz' -exec gunzip {} \\; 

This finds all of the files with .gz extensions to a subdirectory depth of 1 maximum and then executes the gunzip command on the file.

Bogdan Varlamov

Bogdan Varlamov

I believe technology makes life more worthwhile :)

Read More