Đàm Ngọc Lan
New member
How do you display the value of a variable in UNIX?
Answer
To Print the value of above variables, use echo command as shown below :
Answer
To Print the value of above variables, use echo command as shown below :
- # echo $HOME. # echo $USERNAME.
- $ cat myscript.
- #!/bin/bash. # display user information from the system. …
- $ echo “The cost of the item is $15” …
- $ echo “The cost of the item is $15” …
- var1=10. …
- $ cat test3. …
- Running the script produces the following output: