使用`date +%y%m%d`例如: mkdir `log_date +%Y%m%d` tar cfvz /tmp/bak.`date +%y%m%d`.tar.gz /etccp /opt/data/wfbmall/16/wfbmall.log /opt/data/wfmall/16/histo Read More
posted @ 2021-05-24 14:50 欣欣姐 Views(1212) Comments(0) Diggs(0) Edit