How do you recursively unzip archives in a directory and its subdirectories from the Unix command-line?

前端 未结 10 618
旧巷少年郎
旧巷少年郎 2020-12-04 07:15

The unzip command doesn\'t have an option for recursively unzipping archives.

If I have the following directory structure and archives:

/Moth         


        
10条回答
  •  旧巷少年郎
    2020-12-04 07:37

    Something like gunzip using the -r flag?....

    Travel the directory structure recursively. If any of the file names specified on the command line are directories, gzip will descend into the directory and compress all the files it finds there (or decompress them in the case of gunzip ).

    http://www.computerhope.com/unix/gzip.htm

提交回复
热议问题