| replcmd - Wrap any command in a REPL interface |
replcmd - Wrap any command in a REPL interface
replcmd COMMAND [ARGS]
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).
Run COMMAND ARGS WORDS.
WORDS get split on $IFS.
Prefix the line with a # hash mark to
set fixed parameters for COMMAND.
These will be inserted between ARGS and WORDS read form STDIN.
rlwrap --remember --command-name dict --substitute-prompt "dict> " replcmd dict