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

Prints lines num of all files in dir

parent 001a79bc
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment