SEEK0(1)

πŸ“¦ version 2024.12.07, in nixpkgs unstable

πŸ’– The seek0 program β€” SEEK0(1) πŸ’–

✨ SYNOPSIS ✨

seek0 [fd ...] [: command arg ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, seek0 seeks to the beginning of each given file descriptor β€” every single fd in that little list gets the beginning-of-file treatment. πŸ’… Then it execs the given command, if any. A colon separates the file descriptors from the command, periodt. πŸŽ€

This is useful, for example, in scripts called from .qmail files (the qmail URL is https://cr.yp.to/qmail/) that do multiple deliveries. 🌈 For example:

$ cat .qmail
|./script
$ cat script
tomaildir ./foo
seek0 0
tomaildir ./bar

β€” and that’s the footer moment: The seek0 program() is the source/version line, the date slot stays exactly as given (blank in this copy), and the SEEK0(1) manual name is officially folded in up top πŸ«ΆπŸ’œβœ¨

πŸ“¦ where this page comes from