Bash shell script to print the current date and time
kw.sh
Output
kodingwindow@kw:~$ bash kw.sh ——————————————————————————————————————————— Script to print the current date and time ——————————————————————————————————————————— Today's Date | Sat Jul 29 10:01:04 AM IST 2023 Today's Day | Sat Today's Day | Saturday Current Month | Jul Current Month | July Local Date & Time | Sat 29 Jul 2023 10:01:04 AM IST Date Of Month | 29 Date Of Month | 29 Today's Date | 07/29/23 Full Date(y-m-d) | 2023-07-29 Last Digit Of Year | 23 Year Of ISO Week No| 2023 Current Month | Jul Current Hour(00:23)| 10 Current Hour(1:12) | 10 Day Of Year(01-366)| 210 Current Month | 07 Current Minute | 01 NanoSecond | 316946074 Now Time Is AM/PM | AM Now Time Is am/pm | am 12-Hour Clock Time | 10:01:04 AM 24-Hour Clock Time | 10:01 Current Second | 04 Current Time | 10:01:04 Day Of Week(1-mon) | 6 Local Date | 07/29/2023 Local Time | 10:01:04 AM Last Digit Of Year | 23 ISO Week Number | 30 Alphabet Time Zone | IST ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
Bash shell script to perform the arithmetic and relational operations
Bash shell script to calculate the area and circumference of a circle
Bash shell script to check a given number is positive or negative
Advertisement