ubuntu:file:count_the_lines_in_a_file
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:file:count_the_lines_in_a_file [2019/11/27 21:06] – created peter | ubuntu:file:count_the_lines_in_a_file [2022/06/13 10:18] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - File - Count the lines in a file ====== | ||
- | |||
- | ===== Using awk ===== | ||
- | |||
- | <code bash> | ||
- | awk ' | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Using wc ===== | ||
- | |||
- | <code bash> | ||
- | wc -l filename | ||
- | </ | ||
ubuntu/file/count_the_lines_in_a_file.1574888786.txt.gz · Last modified: 2020/07/15 09:30 (external edit)