System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

shuf

Generate random permutations. More information: https://www.unix.com/man-page/linux/1/shuf/.
  • Randomize the order of lines in a file and output the result:
    shuf {{filename}}
  • Only output the first 5 entries of the result:
    shuf --head-count={{5}} {{filename}}
  • Write output to another file:
    shuf {{filename}} --output={{output_filename}}
  • Generate random numbers in range 1-10:
    shuf --input-range={{1-10}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.

Other Projects

This TLDR page is also found in other projects: