<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                查找最近30分鐘修改的當前目錄下的.php文件 ~~~ find . -name '*.php' -mmin -30 ~~~ 查找最近24小時修改的當前目錄下的.php文件 ~~~ find . -name '*.php' -mtime 0 ~~~ 查找最近24小時修改的當前目錄下的.php文件,并列出詳細信息 ~~~ find . -name '*.inc' -mtime 0 -ls ~~~ 查找當前目錄下,最近24-48小時修改過的常規文件。 ~~~ find . -type f -mtime 1 ~~~ 查找當前目錄下,最近1天前修改過的常規文件。 ~~~ find . -type f -mtime +1 ~~~ # 查找最近1分鐘內修改的文件并執行 ```shell #!/usr/bin/env bash #------------------------------------------------------- # FileName : ar # Author :hpy # Date :2020年10月09日 # Description :自動查找最近1分鐘時間內修改的文件并運行 #------------------------------------------------------- lfilename=$(readlink -f $0) #找出最近一分鐘修改的文件 function AutoRun(){ src=$(find . -type f -amin 1 | xargs ls -ta | head -n +1) echo $src if [ ${#src} -eq 0 ] ; then echo "沒有檢測到最近修改的文件" exit 2 fi filename=$(readlink -f $src) if [[ $filename = $lfilename ]] ; then echo "不支持自舉運行" exit 2 fi pathdir=$(dirname $src) if [ -f $pathdir/run ] ; then ./$pathdir/run exit 0 elif [ -f $pathdir/run.sh ] ;then ./$pathdir/run.sh exit 0 else cd?$pathdir ????????src=$(basename?$src) ReadFileType $src fi } function ReadFileType(){ case $1 in *.sh | *.fish | *.pl | *.tcl | *.tk | *.py | *.lua) chmod +x $1 && ./$1 ;; *.c) gcc -o $dst $1 && chmod +x $dst && ./$dst;; *.cpp) g++ -std=c++11 -o $dst $1 && chmod +x $dst && ./$dst;; *.go ) go build -o $dst $1 && chmod +x $dst && ./$dst ;; *.plt) gnuplot $1 ;; #gnuplot * ) echo "Fuck! I don't konw what it is!" ;; esac test -f $dst && rm $dst &>/dev/null exit 0 } AutoRun ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看