Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

-gt:預期一元運算符

tag-icon 2024-6-11 • tag-icon bash shell-script
-gt:預期一元運算符
if [ $(stat -c %s $OTDEFERS) -gt 128 ] ; then
   echo
   echo WARNING: Records have been written to the defers file
   STEP_WARNING=1
fi

執行此腳本時出現以下錯誤:

-gt:預期一元運算符

我讀到,將變數放在雙引號中通常可以完成這項工作,但是它如何處理包含在括號內的變數呢?

THE END
安裝:RPC:遠端系統錯誤 - 沒有到主機的路由 安裝:RPC:遠端系統錯誤 - 沒有到主機的路由
在本地執行遠端 bash 腳本 在本地執行遠端 bash 腳本

相關內容

熱門問答

熱門問答

  • bash
  • shell-script
  • linux
  • mount
  • remote
  • ssh
  • scripting

© 2024 rvso.com 版權所有. 網站地圖