User Tools

Site Tools


bash:files:count_the_lines_in_a_file

BASH - Files - Count the lines in a file

Using awk

awk 'END{print NR}' filename

Using wc

wc -l filename
bash/files/count_the_lines_in_a_file.txt · Last modified: 2022/06/13 11:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki