Skip to content
Snippets Groups Projects
Commit c7ed7362 authored by ab5e20's avatar ab5e20
Browse files

Adding a new script that shows the use of variables and saving pther scripts as variables

parent 66901d58
No related branches found
No related tags found
No related merge requests found
var.sh 0 → 100755
#!/bin/bash
#Set a variable
exampleVariable=600
#Set a variable from other scripts
exampleVariable2=$(./hello.sh)
#Print out result
echo The value of the variable is $exampleVariable
echo the value of variable 2 is $exampleVariable2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment