Counting lines starting with a certain string

grep '^your_word' /path/to/file | wc -l

[highlighter line=0]

Leave a Reply

Your email address will not be published. Required fields are marked *