seekstdin - Makes STDIN seekable for a given command



NAME

seekstdin - Makes STDIN seekable for a given command


SYNOPSIS

seekstdin COMMAND [ARGS]


DESCRIPTION

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.


LIMITATIONS

Impractical with huge files, because they possibly do not fit on the temporary files' filesystem.


SEE ALSO

ordinargs(1)

 seekstdin - Makes STDIN seekable for a given command