Topic 3: Example: Current Info : Variables #Linux/Unix: Shell Programming – 001

bash-3.2$ cat currentinfo.ksh
#!/bin/ksh

# outputs the day, time, & current month.
day=$(date +%D)
time=$(date +%T)
print “Today is $day.”
print
print “The time is $time.”
print
print “This month’s calendar:”
bash-3.2$ ./currentinfo.ksh
Today is 04/27/18.

The time is 10:25:45.

This month’s calendar: From: http://sitestree.com/?p=12227
Categories:Linux/Unix: Shell Programming – 001
Tags:
Post Data:2018-05-05 14:28:58

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada