Linux下添加任務計劃,計劃內容以sh文件表示

sh文件內容: #/bin/sh DATE=`date +%Y%m%d` cd /your/log/path/ for f in *; do cp $f  /path/to/save/$DATE_$f; done 記得要給這個文件加可執行權限: chmod a+x   xxx.sh for f 中的f 是會換成當前文件的。 #/bin/sh cd /your/log/path/ for f in
相關文章
相關標籤/搜索