When you need to create a log file or some dated archive
echo "This is a dated file $(date +%Y_%m_%d_%H.%M.%S)" > testfile_`date +%Y_%m_%d_%H.%M.%S`.txt
The format can be modified slightly based on date formatting.
Last Updated on October 4, 2019
When you need to create a log file or some dated archive
echo "This is a dated file $(date +%Y_%m_%d_%H.%M.%S)" > testfile_`date +%Y_%m_%d_%H.%M.%S`.txt
The format can be modified slightly based on date formatting.