Is there an equivalent to
ls -v in Mac OS X that will do version number sorting?
In Mac OS X,
ls -v does NOT do version number sorting, but the Finder seems to.
So, for example, install Homebrew:
Wait a bit, read the installation instructions. Then, install coreutils:
This will add all the GNU coreutils with the
To override the default
Note that this might affect other programs that rely upon the BSD version. If you just want to alias
bash script for sorting version numbers correctly on mac terminal