S6-HEAD(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

🌸 NAME 🌸

Bestie, this is s6-head(1) from the General Commands Manual β€” it prints the first lines of input files. πŸ’–

✨ SYNOPSIS ✨

s6-head [-S] [-1..9 | -n lines | -c chars] file...

πŸ’– DESCRIPTION πŸ’–

Okay so s6-head acts as the generic head[1] utility. That's the whole vibe: first lines, no cap. ✨

πŸŽ€ OPTIONS πŸŽ€

πŸ’… Standard options πŸ’…

  • -n number β€” Prints the first number lines from file to stdout. πŸ“„

πŸ¦‹ Non-standard options πŸ¦‹

  • -S β€” Safe mode. s6-head stops reading its input files right after getting all the lines it needs. The rest of the stream can then be handled by other utilities without any data loss. πŸ›Ÿ
  • -1..9 β€” Equivalent to -n 1 .. -n 9. So yes, the tiny number flags are little shortcuts, iykyk. πŸ”’
  • -c chars β€” Cuts after chars characters instead of lines lines. 🧚

πŸ’€ EXIT STATUS πŸ’€

  • 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 friend group: s6-basename(1), s6-cat(1), s6-chmod(1), s6-chown(1), s6-clock(1), s6-cut(1), s6-dirname(1), s6-dumpenv(1), s6-echo(1), s6-env(1), s6-expr(1), s6-false(1), s6-format-filter(1), s6-grep(1), s6-hiercopy(1), s6-linkname(1), s6-ln(1), s6-ls(1), s6-maximumtime(1), s6-mkdir(1), s6-mkfifo(1), s6-nice(1), s6-nuke(1), s6-pause(1), s6-printenv(1), s6-quote(1), s6-quote-filter(1), s6-rename(1), s6-rmrf(1), s6-seq(1), s6-sleep(1), s6-sort(1), s6-sync(1), s6-tai64ndiff(1), s6-tail(1), s6-touch(1), s6-true(1), s6-uniquename(1), s6-unquote(1), s6-unquote-filter(1), s6-update-symlinks(1), seekablepipe(1).

Footnote [1]: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/head.html.

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-head.html.

🌈 STANDARDS 🌈

s6-head is suitable as a head[1] program conforming to . 🌈

πŸ‘‘ AUTHORS πŸ‘‘

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

πŸŽ€ Cute sign-off: source/version is Debian, date is April 18, 2022, and the page is S6-HEAD(1). Bye bestie, go read some first lines! 🫢
πŸ“¦ where this page comes from