User Tools

Site Tools


sed:reverse:reverse_order_of_lines

This is an old revision of the document!


SED - Reverse - Reverse order of lines

Emulates “tac”.

<code bash> sed '1!G;h;$!d' # method 1 sed -n '1!G;h;$p' # method 2 <code>

NOTE: A Bug/feature in HHsed v1.5 causes blank lines to be deleted.

sed/reverse/reverse_order_of_lines.1597580169.txt.gz · Last modified: 2020/08/16 12:16 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki