How can I get the tac command on OS X?
On OS/X like on many systems (BSDs, Solaris, AIX, IRIX...), the functionality of GNU tac
is available in tail
with the -r
option. So no need to install GNU tac
:
tail -r the-file
Yes:
- Install Homebrew
brew install coreutils
apparently not needed with latest Homebrew, see comment by Ran Ever-Hadani belowln -s /usr/local/bin/gtac /usr/local/bin/tac
or use MacPorts to install coreutils
in a similar way.