Append current date to filename in bash shell

skill

Posted by JXLIU on June 10, 2022

Append current date to filename in bash shell

A case

1
mpirun -n 4 psc_harris_xz >> "psc_harris_xz-`date +"%m-%d-%y"`.log"