Last active
February 5, 2020 13:13
-
-
Save jwendell/38ab31ece1394aa7b6e21287dfe2b146 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
A=$(date +%Y-%m-%dT%H-%M-%S) | |
B=`date +%Y-%m-%dT%H-%M-%S` | |
while true; do | |
echo $A | |
echo $B | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made the modifications as I had suggested:
and the result is
which looks like $(...) is working correctly...