User Tools

Site Tools


ubuntu:file:count_the_lines_in_a_file

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
ubuntu:file:count_the_lines_in_a_file [2020/07/15 09:30] – external edit 127.0.0.1ubuntu: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 'END{print NR}' filename 
-</code> 
- 
----- 
- 
-===== Using wc ===== 
- 
-<code bash> 
-wc -l filename 
-</code> 
  
ubuntu/file/count_the_lines_in_a_file.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki