sort text utility features a non-standard
-R option to randomize input lines.
sort does not have this extension. Is there similar functionality available in another text filter?
Running this would install Homebrew.
Then just follow the installation instructions. When Homebrew is installed, run
This will install GNU sort as
Alternatively, have a look at these Stack Overflow questions, which mention a couple of methods:
Or take a look at this commandlinefu.com page:
On OS X, if you don't want to install homebrew (but you really should), you could use
Alternatively you can try
Source: How to shuffle a list in vim?