Skip to content
Snippets Groups Projects
Commit 7319f805 authored by agm1g21's avatar agm1g21
Browse files

Completed Lab 2

parent ad48a9c0
No related branches found
No related tags found
Loading
#!/bin/bash
for i in {1..10}
do
echo Hello $i
done
#!/bin/bash
for file in ./*
do
numLines=$(wc -l < $file)
echo The file $file contains $numLines lines of text
done
#!/bin/bash
echo "Hello world!"
#!/bin/bash
#Set a variable
exampleVariable=600
#Print out the result
echo The value of the variable is $exampleVariable
#!/bin/bash
#Set a variable
exampleVariable=$(./hello.sh)
#Print out the 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