S6-SORT(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to s6-sort(1) from the General Commands Manual β€” this is the page for sorting input, and it's lowkey iconic πŸ’…βœ¨

The name line is literally s6-sort β€” sort input πŸŽ€


🌸 SYNOPSIS 🌸

s6-sort [-b] [-c] [-f] [-r] [-u] [-0]

✨ DESCRIPTION ✨

okay so s6-sort reads its stdin until EOF. it sorts all the lines it read alphanumerically β€” no cap, that's the whole vibe πŸ¦‹

Then it prints the sorted lines to stdout and exits 0. periodt πŸ’–


πŸŽ€ OPTIONS πŸŽ€

vibe check each flag, bestie β€” they're all right here:

  • -b β€” ignore leading spaces and tabs at the beginning of each line when sorting πŸ’…
  • -c β€” suppresses normal output, just returns 0 if the output would have been the same as the input and 1 otherwise πŸ‘‘
  • -f β€” ignore case when sorting 🌸
  • -r β€” reverse sort πŸ”₯
  • -u β€” suppresses duplicate lines ✨
  • -0 β€” input and output lines are separated by null characters instead of newlines 🫢

πŸ”₯ EXIT STATUS πŸ”₯

the exit codes are giving very specific main character energy:

  • 111 β€” temporary error 😭
  • 100 β€” permanent error, such as a misuse πŸ’€
  • 127 β€” unable to execute program - not found πŸ™ˆ
  • 126 β€” unable to execute program - other reason πŸ“

πŸ¦‹ SEE ALSO πŸ¦‹

the whole s6 squad is here, bestie β€” every single reference, no skips:

there's also a footnote [1] pointing at https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sort.html β€” and heads up, bestie: this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-sort.html 🫢


🌈 STANDARDS 🌈

real talk: s6-sort is not suitable as a sort[1] program conforming to . πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

and that's the whole page, bestie β€” it comes from Debian, dated April 17, 2022, and the page itself is S6-SORT(1) πŸ’œβœ¨

πŸ“¦ where this page comes from