Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 413 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 413 Bytes

stdinmap

Execute commands based on STDIN input

Configuration is read from stdinmap.ini in the current dir.

Add a stdinmap.ini with regexes and commands that should be executed when a regex is matched.

Sample stdinmap.ini:

^world$:echo hello world!
^oh.*$:echo input says {key}

stdinmap usage:

$ echo world | stdinmap
=> hello world!

$echo oh hi | stdinmap
=> input says oh hi