SHUF(1)
π NAME π
ok so shuf β bestie, it shuffles your input by outputting a random permutation of the input lines. every single output permutation is, like, equally likely (yes, truly, the math ate). and if you give it no FILE, or if FILE is literally just -, it reads from standard input. periodt. π
β¨ SYNOPSIS β¨
shuf [OPTION]... [FILE]
shuf -e [OPTION]... [ARG]...
shuf -i LO-HI [OPTION]...
three whole moods, pick your fighter π¦
πΈ DESCRIPTION πΈ
okay so real talk: shuf shuffles the input by outputting a random permutation of input lines. every output permutation is equally likely β no cap, that's the whole personality. π«Ά
and like, with no FILE, or when FILE is -, it reads standard input. classic.
π₯ OPTIONS π₯
-e,--echoβ treat eachARGas an input line. so instead of feeding it a file, you just hand it the lines directly, iconic behavior π-i,--input-range <LO-HI>β treat each numberLOthroughHIas an input line. number go brrr π-n,--head-count <COUNT>β output at mostCOUNTlines. a little taste, not the whole meal π-o,--output <FILE>β write the result toFILEinstead of standard output. take it to go β¨--random-seed <STRING>β seed withSTRINGfor reproducible output. same seed, same shuffle, every time β lowkey obsessed π--random-source <FILE>β get random bytes fromFILE. you're sourcing your chaos from somewhere specific, main character energy π-r,--repeatβ output lines can be repeated. yes bestie, the same line can show up more than once, that's the point π-z,--zero-terminatedβ line delimiter isNUL, not newline. for when newlines are simply not the vibe π-h,--helpβ print help. we love a helper π§-V,--versionβ print version. let's see what we're working with π[file-or-args]β yeah this is just sitting here at the bottom of the list, exactly where it was, no notes πΈ
β VERSION β
v(uutils coreutils) 0.12.0
and that's the whole page, bestie β no notes, fr fr π go forth and randomize. this lil writeup was brought to you by v(uutils coreutils) 0.12.0, dated 2026-09-17 π¦π
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms