On OS X you will have to install coreutils package (it is as easy as typing brew install coreutils). If you don't use Homebrew you should definitely start using it.
For Mac OS X the command will look as follows: