ubuntu:file:count_the_lines_in_a_file
This is an old revision of the document!
Table of Contents
Ubuntu - File - Count the lines in a file
Using awk
awk 'END{print NR}' filename
Using wc
wc -l filename
ubuntu/file/count_the_lines_in_a_file.1594805433.txt.gz ยท Last modified: 2020/07/15 09:30 by 127.0.0.1