shuf(1)

πŸ“¦
version 0.7.0 Β· 3 versions
, in epel 10, fedora 43, fedora 44

πŸ’… shuf β€” the General Commands Manual page, but make it cute

okay bestie, welcome to shuf(1) ✨ this is the manual page for shuf, and we're gonna go through it together, top to bottom, no skimming, no skipping. periodt.


✨ NAME ✨

shuf β€” shuffle the input by outputting a random permutation of input lines. Each output permutation is equally likely. With no FILE, or when FILE is -, read standard input.

like… it literally just vibes and reorders your lines. every possible ordering has the same chance. no favourites, no bias, main character energy for every line equally πŸŽ€


🌈 SYNOPSIS 🌈

shuf [-e|--echo] [-i|--input-range] [-n|--head-count] [-o|--output]
[--random-seed] [--random-source] [-r|--repeat] [-z|--zero-terminated]
[-h|--help] [-V|--version] [file-or-args]

that's the whole shape of it, bestie. flags, then optionally a file or some args. iykyk πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

Shuffle the input by outputting a random permutation of input lines. Each output permutation is equally likely. With no FILE, or when FILE is -, read standard input.

fr fr that's the whole thing. it takes lines in, it spits lines out in a random order, and every single ordering is just as likely as every other one. if you don't hand it a FILE, or if the FILE you hand it is -, it reads from standard input. standard input is always down to hang out πŸ’œ


✨ OPTIONS ✨

the options, bestie, one by one, no skipping, we're eating the whole plate πŸ‘‘

  • -e, --echo β€” treat each ARG as an input line
  • -i, --input-range <LO-HI> β€” treat each number LO through HI as an input line
  • -n, --head-count <COUNT> β€” output at most COUNT lines
  • -o, --output <FILE> β€” write result to FILE instead of standard output
  • --random-seed <STRING> β€” seed with STRING for reproducible output
  • --random-source <FILE> β€” get random bytes from FILE
  • -r, --repeat β€” output lines can be repeated
  • -z, --zero-terminated β€” line delimiter is NUL, not newline
  • -h, --help β€” Print help
  • -V, --version β€” Print version
  • [file-or-args] β€” yeah that's it, that's the trailing positional. slay.
ngl, --random-seed is lowkey the icon of the group. reproducible shuffles?? obsessed. 🌸

πŸ’€ VERSION πŸ’€

v(uutils coreutils) 0.7.0

and that's the page, bestie 🫢 this was shuf from uutils coreutils, version 0.7.0, in the General Commands Manual β€” so go forth, shuffle something, and remember: every permutation is equally likely, just like every one of your bad ideas is equally iconic πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒˆπŸ’…

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
  • fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms