Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash datetime in filename

$ md5sum /etc/mtab > "$(date +"%Y_%m_%d_%I_%M_%p").log"
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #datetime #filename
ADD COMMENT
Topic
Name
1+8 =