I am using bash. Could someone tell me why is this:
mv file.txt file.txt_$(date +%F-%T)
...working as expected, giving me file_2017-01-05-13:46:50
while renaming multiple files with rename
:
rename 's/file/file_$(date +%F-%T)/' *.txt
.. is not working as expected, giving me file_1000 4 24 27 30 46 118 127 1000date +%F-%T).txt
and I want multiple renamed files with a date and time?