Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
watchfor /error:/
pipe "./ swatch.err"
echo red
watchfor /warning:/
pipe "./ swatch.warn"
echo yellow
watchfor /no problem/
# nothing to do
watchfor /.*/
pipe "./ swatch.unknown"
echo magenta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment