BSD tail: tail -r myfile.txt. Reference: FreeBSD, NetBSD, OpenBSD and OS X manual pages.
Vim on a Unix-like operating system, the tac † utility will reverse all lines for you. ... It is probably more useful to reverse the lines in-place, i.e. without moving ...
How can I print lines from file backwards (without using “tac”)? at Unix SE.
Using sed to emulate tac : sed '1!G;h;$!d' "${inputfile}".
h – copies the pattern space to the hold space; $!d – delete the line, $! makes sure this command will ignore the last line. For more, check out our ...
SORT command sorts the contents of a text file, line by line. sort is a
Unix newlines (LF) to DOS format sed "s/$/`echo -e \\\r`/" # command line
Use the Unix command tail to read from standard input or a file and
Tutorial on using sort, a UNIX and Linux command for sorting lines of text files. Examples of alphabetical sorting, reverse order sorting, sorting ...
... this: lineN . . | The UNIX and Linux Forums.