How linux batch decompresses all files ending in .zip in the current directory to a specified directory
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!