regargwrap - Replace non-regular file arguments to regular ones



NAME

regargwrap - Replace non-regular file arguments to regular ones


SYNOPSIS

regargwrap [OPTIONS] COMMAND [ARGS]


DESCRIPTION

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.


OPTIONS

--pipes
--sockets
--blocks
--chars

Replace only pipe/socket/block/char special files. If no option like these specified, by default, replace any of them.


EXAMPLES

  regargwrap git diff --no-index <(ls -1 dir_a) <(ls -1 dir_b)


LIMITATIONS

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


SEE ALSO

regargwrap(1) is a generalization of seekstdin(1).