Skip to content

1200wd/stdinmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Execute commands based on STDIN input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages