From e33ad4f128fb8fef2119cf2c71371eaf9c19bd29 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Sat, 3 Jun 2017 12:52:03 +0200 Subject: Initial setup with basic tools: vim/dein, tmux, st, tup, X --- bin/log_notifications.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/log_notifications.sh (limited to 'bin/log_notifications.sh') diff --git a/bin/log_notifications.sh b/bin/log_notifications.sh new file mode 100755 index 0000000..2b187db --- /dev/null +++ b/bin/log_notifications.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "${@}" \ + | sed -r 's/IT Message from (\w+)\s*(.+) emblem-important CRITICAL/\1> \2/' \ + >> "/tmp/notifications.log" -- cgit v1.2.3-70-g09d2