ubuntu:file:display_the_first_few_lines_of_a_file
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:file:display_the_first_few_lines_of_a_file [2019/12/15 19:58] – created peter | ubuntu:file:display_the_first_few_lines_of_a_file [2022/06/13 11:12] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - File - Display the first few lines of a file ====== | ||
- | |||
- | Display the first 6 lines of a file. | ||
- | |||
- | <code bash> | ||
- | awk 'NR <= 6' filename | ||
- | </ | ||
ubuntu/file/display_the_first_few_lines_of_a_file.1576439919.txt.gz · Last modified: 2020/07/15 09:30 (external edit)