args2stdin - Turns command arguments into input stream on STDIN



NAME

args2stdin - Turns command arguments into input stream on STDIN


SYNOPSIS

args2stdin [OPTIONS] COMMAND ARG_1 [ARG_2 [...]]


DESCRIPTION

Execute COMMAND command with ARG_n arguments, except remove those which are specified in OPTIONS and write them on the command's STDIN instead.


OPTIONS

-a, --arg NUM

Remove the NUMth argument and write it on STDIN. Counting starts from 1. The 0th argument would be the COMMAND itself. NUM may be negative number, in which case it's counted from the end backwards.

-r, --right-arg NUM

Same as --arg -NUM >.

-A, --all

Move all arguments to STDIN.

-e, --all-after STRING

STRING marks the end of arguments. All arguments after this will be passed in STDIN. This argument won't be passed to COMMAND anywhere. It's usually --. args2stdin(1) does not have any default for this, so no particular argument makes the rest of them go to STDIN.

-k, --keep NUM

Keep the first NUM arguments as arguments, and move the rest of them. Don't use it with -A, -a, or -r.

-d, --delimiter STRING

Delimit arguments by STRING string. Default is linefeed (\n).

-t, --tab-delimiter

Delimit arguments by TAB char.

-0, --null

Delimit arguments by NUL char.


SEE ALSO

args2env(1)

 args2stdin - Turns command arguments into input stream on STDIN