User Tools

Site Tools


file:count_the_lines_in_a_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

file:count_the_lines_in_a_file [2016/07/10 17:12] – created peterfile:count_the_lines_in_a_file [2019/11/27 21:06] (current) – removed peter
Line 1: Line 1:
-====== File - Count the lines in a file ====== 
- 
-===== Using awk ===== 
- 
-<code bash> 
-awk 'END{print NR}' filename 
-</code> 
- 
- 
- 
-===== Using wc ===== 
- 
-<code bash> 
-wc -l filename 
-</code> 
  
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