Get the App
SLTechnology News&Howtos  ›  Development  › 

How linux batch decompresses all files ending in .zip in the current directory to a specified directory

Shulou Source: shulou.com Published: 2022-06-01 05:49:16 11月17日 Update

Editor to share with you how linux batch decompresses all the files ending with .zip in the current directory to the specified directory, I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.

Batch extract all files ending with .zip in the current directory to the specified directory:

For i in `find. -name "* .zip"-type f `do unzip-d $I / data/www/img/ done

Note: forI in (command); do... Done is a common format of the for loop, where I is a variable and can be specified by yourself.

The above is all the contents of the article "how to batch extract all the files ending in .zip in the current directory to the specified directory". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Directories documents articles content not much variables most commonly used more formats annotations knowledge industry information information channels channels references learning help loops Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Redmi Microsoft Linux Shulou Technology