Create dated files on the command line

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

Note that the single quotation mark is the button under esc, and there is a space after the date

Guess you like

Origin blog.csdn.net/qq_41834780/article/details/114528683