There are few files in a directory. I would like to find all the files based on wildcard criteria and then rename it by appending a date or timestamp field to it using single line command
Example : foo1.txt foo1.log foo2.txt foo2.log
I want to find all .log files and rename them by appending date field to it
Expected output : foo1.txt foo1_20210609.log foo2.txt foo2_20210609.log