User Tools

Site Tools


sed:print:print_the_last_n_lines_of_a_file

Differences

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

Link to this comparison view

sed:print:print_the_last_n_lines_of_a_file [2020/08/17 08:50] – created 192.168.1.1sed:print:print_the_last_n_lines_of_a_file [2020/08/17 10:08] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Print - Print the last N lines of a file ====== 
  
-Emulates "tail". 
- 
-For example, to print the last 10 lines of a file: 
- 
-<code bash> 
-sed -e :a -e '$q;N;11,$D;ba' 
-</code> 
sed/print/print_the_last_n_lines_of_a_file.1597654240.txt.gz · Last modified: 2020/08/17 08:50 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki