====== SED - Reverse - Reverse order of lines ====== Emulates "tac". sed '1!G;h;$!d' # method 1 sed -n '1!G;h;$p' # method 2 **NOTE:** A Bug/feature in HHsed v1.5 causes blank lines to be deleted.
sed '1!G;h;$!d' # method 1 sed -n '1!G;h;$p' # method 2