Created
August 6, 2022 05:25
-
-
Save fremen432/3936d1c0fb43b2b457f3c1833f21eaf7 to your computer and use it in GitHub Desktop.
BASH script that prints the current date.
This file contains 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 | |
Year=`date +%Y` | |
Month=`date +%m` | |
Day=`date +%d` | |
Hour=`date +%H` | |
Minute=`date +%M` | |
Second=`date +%S` | |
echo `date` | |
echo "Current Date is: $Day-$Month-$Year" | |
echo "Current Time is: $Hour:$Minute:$Second" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment