User Tools

Site Tools


sed:print:print_the_last_2_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_2_lines_of_a_file [2020/08/16 12:37] – created 192.168.1.1sed:print:print_the_last_2_lines_of_a_file [2020/08/17 10:09] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Print - Print the last 2 lines of a file ====== 
  
-Emulates "tail -2". 
- 
-<code bash> 
-sed '$!N;$!D' 
-</code> 
sed/print/print_the_last_2_lines_of_a_file.1597581428.txt.gz · Last modified: 2020/08/16 12:37 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki