Topic 1: Basic Date Displaying Shell Script #Linux/Unix: Shell Programming – 001

bash-3.2$ cat echoscript1.sh
#!/bin/sh
#clear
echo “SCRIPT BEGINS”
echo “Hello $LOGNAME”
echo
echo “Todays date is: c”
date ‘+%m/%d/%y’
echo “and the current time is: c”
date ‘+%H:%M:%S%n’
echo “Now a list of the processes in the current shell”
ps
echo “SCRIPT FINISHED!!”
bash-3.2$ ./echoscript1.sh
SCRIPT BEGINS
Hello shell

Todays date is: 04/27/18
and the current time is: 07:58:45

Now a list of the processes in the current shell
PID TTY TIME CMD
18612 syscon 0:00 ps
18585 syscon 0:00 sh
18609 syscon 0:00 echoscri
18589 syscon 0:00 bash
SCRIPT FINISHED!! From: http://sitestree.com/?p=12208
Categories:Linux/Unix: Shell Programming – 001
Tags:
Post Data:2018-04-27 23:03:01

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