diff --git a/var.sh b/var.sh index c354e3c27a2c558df03131f3ce6153243d4b73f3..84fcca91cd251eb5e26d7b72b73bf090f031d2ae 100644 --- a/var.sh +++ b/var.sh @@ -7,5 +7,10 @@ do echo hello $i done +for file in ./* +do + numLines=$(wc -l < $file) + echo the file $file contains $numLines lines of text +done echo the value of the variable is $exampleVariable