Get the App
SLTechnology News&Howtos  ›  Development  › 

How does shell determine that the file is not empty

Shulou Source: shulou.com Published: 2022-06-01 04:06:19 11月12日 Update

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!

Tags: Articles documents value interests at the same time more friends knowledge editing industry information information channels channels reference learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei MySQL vpn Xiaomi