User Tools

Site Tools


file:count_the_lines_in_a_file

This is an old revision of the document!


File - Count the lines in a file

Using awk

awk 'END{print NR}' filename

Using wc

wc -l filename
file/count_the_lines_in_a_file.1468170772.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki