Command 1:
$ touch test"date"
Command 2:
$ date +"%F"
2018-01-16
I want to be able to run the command so the file test_2018-01-16
is created. How do or can I combine the 2 commands above to do this?
$ touch test_"date"
EDIT1 - Answer
tks
these commands
touch fred-`date +%F`
touch "test-$(date +%F)"
touch "test2_$(date +"%F %T")"
prduce the following files respectively
fred-2018-01-16
test-2018-01-16
test2_2018-01-16 11:51:53