replcmd - Wrap any command in a REPL interface


NAME

replcmd - Wrap any command in a REPL interface


SYNOPSIS

replcmd COMMAND [ARGS]


DESCRIPTION

Run COMMAND repeatedly with words read from STDIN appended to its argument list after ARGS. You may add prompt, history, and other CLI-goodies on top of replcmd(1) by eg. rlwrap(1).


RUNTIME COMMANDS

WORDS

Run COMMAND ARGS WORDS. WORDS get split on $IFS.

# [PARAM-1 [PARAM-2 [...]]]

Prefix the line with a # hash mark to set fixed parameters for COMMAND. These will be inserted between ARGS and WORDS read form STDIN.


EXAMPLE

rlwrap --remember --command-name dict --substitute-prompt "dict> " replcmd dict