Write a script in Linux
1. First, introduce the case statement format
2. The script is as follows:
Dest reads the name of the compressed file, while comp reads the compression mode
Add permissions to files:
Create three files:
View that the compressed file has been generated:
So far, the script implements the compression of three files.
The above is the whole content of this article, I hope to help you learn, and I hope you can support developer more.