====== SED - Print - Print last line of a file ====== Emulates "tail -1". sed '$!d' # method 1 sed -n '$p' # method 2 **NOTE:** Equivalent to: sort -R – | head -1