bash count matches lines code example Example: count new lines bash command | wc -l wc -l < some_file.txt