User Tools

Site Tools


sed:print:print_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_last_line_of_a_file [2020/08/17 10:10] – created 192.168.1.1sed:print:print_last_line_of_a_file [2020/12/22 16:06] (current) peter
Line 7: Line 7:
 sed -n '$p'                  # method 2 sed -n '$p'                  # method 2
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  Equivalent to:
 +
 +<code bash>
 +sort -R – | head -1
 +</code>
 +
 +</WRAP>
  
sed/print/print_last_line_of_a_file.1597659000.txt.gz · Last modified: 2020/08/17 10:10 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki