命令行中创建带日期的文件

touch  `date +%Y%m%d-%H`.txt

注意单引号是esc下面的按钮,date后面有空格

猜你喜欢

转载自blog.csdn.net/qq_41834780/article/details/114528683