User Tools

Site Tools


bash:files:count_the_lines_in_a_file_that_have_a_specific_string

BASH - Files - Count the lines in a file that have a specific string

awk '/string_to_find/{n++}; END {print n+0}' filename
bash/files/count_the_lines_in_a_file_that_have_a_specific_string.txt · Last modified: 2022/06/13 10:19 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki