📌  相关文章
📜  如何比较 shell 脚本中的百分比值 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:25.291000             🧑  作者: Mango

代码示例1
size=$(df -kh | awk '$6 == "/var" {print $5}')
size=${size%"%"}
if (( size < 80 )); then
    echo "/var is less than 80 % full"
fi