#!/bin/sh
#assign value to a variable and print to the screen
NAME=”Justetc”
echo $NAME
#Ask the user to enter a Name
echo ##################################
echo “enter name”
#read command is used to take input from the user
read X
#print the value two times to the screen
echo $X
echo $X
—————————
????? – Output
bash-3.2$ ./variable_use.sh
Justetc
enter name
Sayed Ahmed
Sayed Ahmed
Sayed Ahmed From: http://sitestree.com/?p=12177
Categories:Linux/Unix: Shell Programming – 001
Tags:
Post Data:2018-04-16 18:10:44
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