Answers for "unix timestamp as variable name terminal"

0

timestamp in bash

timestamp=`date +%Y%m%d%H%M%S`
curl -s http://mywebsite.com/myscript.txt -o /tmp/.myscript.${timestamp}.tmp
bash /tmp/.myscript.${timestamp}.tmp
rm -f /tmp/.myscript.${timestamp}.tmp
Posted by: Guest on August-18-2021
0

unix timestamp bash

date +%s 

# Give the number of seconds since epoch
Posted by: Guest on May-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language