How does shell determine that the file is not empty
This article mainly introduces shell how to judge the document is not empty, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Determine that the file is not empty
If [- s $file]; then echo "not empty" fi thank you for reading this article carefully. I hope the article "how to judge a document is not empty" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!