久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      當日志文件大于1G時清空文件,非刪除

      #!/bin/bash

      #當文件大于1G時清空

      FILE=/root/hello.txt

      #判斷文件是否存在

      if ! [ -f $FILE ]

      then

      #輸出文件不存在

      echo "file not exist!"

      exit 1

      fi

      #判斷文件大小,ls -l 用awk取輸出的第五列

      if [ ls -l $FILE|awk '{print $5}' -gt $((1024*1024)) ]

      then

      #輸出空到文件中

      echo " "> $FILE

      fi

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號