Open main menu

CDOT Wiki β


Tutorial10: Shell Scripting - Part 1

8 bytes added, 10:20, 3 September 2020
Using Variables in Shell Scripts
''<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:'''
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.