shuf(1)
π 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