Sample: mv test.log test_`date +%Y%m%d_%H%M`.log
时间变量需要用引号` `或者$()括起来才能当作变量串使用. 用“”就直接成为字符在文件里
其他扩展:
Sample: mv test.log test_`date +%Y%m%d_%H%M`.log
时间变量需要用引号` `或者$()括起来才能当作变量串使用. 用“”就直接成为字符在文件里
其他扩展:
1565
3371
4422

被折叠的 条评论
为什么被折叠?