[root@search195 zfl2]# touch test$(date +%Y%m%d).txt[root@search195 zfl2]# lstest20180703.txt[root@search195 zfl2]# touch test$(date +%Y%m%d_%H%M%S).txt[root@search195 zfl2]# lstest20180703_175917.txt test20180703.txt
原文链接:https://www.f2er.com/bash/387634.html