Skip to content
Snippets Groups Projects
Commit 001a79bc authored by Charles Rhodes-Peel's avatar Charles Rhodes-Peel
Browse files

changed var.sh now use hello.sh as variable

parent b17d58a0
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
echo "Hello world!"
for i in {1..10}
do
echo Hello $i
done
#!/bin/bash
#Set a variable
exampleVariable=600
exampleVariable=$(./hello.sh)
#Print out result
echo The value of the variable is $exampleVariable
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment