Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

12 bytes removed, 10:36, 3 September 2020
Using Variables in Shell Scripts
'''Definition'''
''<b>Variables</b> are used to '''store information''' to be referenced and manipulated in a computer program.<br>They also provide a way of labeling data with a descriptive name, so our programs can be understood<br>more clearly by the reader and ourselves.''<br>'''Reference:''' https://launchschool.com/books/ruby/read/variables
'''User Defined Variables'''
''<b>User-defined variables</b> are variables which can be '''created by the user''' and exist in the session. This means that no one can access user-defined variables that have been set by another user,<br>and when the session is closed these variables expire.''<br>'''Reference:''' https://mariadb.com/kb/en/user-defined-variables/
<br><br>
Data can be stored and removed within a variable using an '''equal sign'''.<br>The '''read''' command can be used to prompt the user to enter data into a variable.<br>Refer to the diagram on the right-side to see how user-defined variables are assigned data.
13,420
edits

Navigation menu