Skip to content
Snippets Groups Projects
Commit 175c771e authored by wm4g21's avatar wm4g21
Browse files

forLoops bash script add

parent 4595a396
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
for file in ./*
do
numLines=$(wc -l < $file)
echo the file $file contains $numLines lines of text
done
for i in {1..10}
do
echo Hello $i
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment