| regargwrap - Replace non-regular file arguments to regular ones |
regargwrap - Replace non-regular file arguments to regular ones
regargwrap [OPTIONS] COMMAND [ARGS]
Saves the content of non-regular files found in ARGS into a temporary file, then runs COMMAND ARGS with the non-regular file arguments replace to the regular (yet temporary) ones.
This is useful if COMMAND does not support reading from pipes or other non-seekable files.
Replace only pipe/socket/block/char special files. If no option like these specified, by default, replace any of them.
regargwrap git diff --no-index <(ls -1 dir_a) <(ls -1 dir_b)
Impractical with huge files, because they possibly do not fit on the temporary files' filesystem.
regargwrap(1) is a generalization of seekstdin(1).