| seekstdin - Makes STDIN seekable for a given command |
seekstdin - Makes STDIN seekable for a given command
seekstdin COMMAND [ARGS]
Saves the content of STDIN into a temporary file,
then runs COMMAND.
This is useful if COMMAND does not support reading from pipe.
One of the reasons why reading from pipe is usually not supported
is that it is not seekable.
seekstdin(1) makes COMMAND's STDIN seekable by saving its own input
to a file which is unlinked right away,
so it won't occupy disk space once COMMAND ends.
Impractical with huge files, because they possibly do not fit on the temporary files' filesystem.
ordinargs(1)