User Tools

Site Tools


sed:print:print_the_last_line_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_line_of_a_file [2020/08/16 12:38] – created 192.168.1.1sed:print:print_the_last_line_of_a_file [2020/08/17 10:09] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Print - Print the last line of a file ====== 
- 
-Emulates "tail -1". 
- 
-<code bash> 
-sed '$!d'                    # method 1 
-sed -n '$p'                  # method 2 
-</code> 
  
sed/print/print_the_last_line_of_a_file.1597581497.txt.gz · Last modified: 2020/08/16 12:38 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki