Bash Scripting: Variable assignment and echo command

Published: 20 January 2022
on channel: Thomas Blum
919
9

This video looks at some simple introductory bash script. The main topic is assigning values to variables. A bash variable does NOT get a dollar sign $ when you are giving it a value, but DOES get a dollar sign when you are retrieving its assigned value. In an assignment statement the variable is on the left-hand-side of the equal sign, and there are no spaces on either side of the equal sign. A read command is another way to get a value assigned to a variable. We also look at concatenation of string literals and variables. There is no need for the plus sign or commas one sees in other languages.


On this page of the site you can watch the video online Bash Scripting: Variable assignment and echo command with a duration of hours minute second in good quality, which was uploaded by the user Thomas Blum 20 January 2022, share the link with friends and acquaintances, this video has already been watched 919 times on youtube and it was liked by 9 viewers. Enjoy your viewing!