bash:files:count_the_lines_in_a_file
Differences
This shows you the differences between two versions of the page.
bash:files:count_the_lines_in_a_file [2022/06/13 10:18] – created peter | bash:files:count_the_lines_in_a_file [2022/06/13 10:18] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASH - Files - Count the lines in a file ====== | ====== BASH - Files - Count the lines in a file ====== | ||
+ | |||
+ | ===== Using awk ===== | ||
+ | |||
+ | <code bash> | ||
+ | awk ' | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Using wc ===== | ||
+ | |||
+ | <code bash> | ||
+ | wc -l filename | ||
+ | </ | ||
bash/files/count_the_lines_in_a_file.1655115484.txt.gz · Last modified: 2022/06/13 10:18 by peter