#!/bin/sh echo "${@}" \ | sed -r 's/IT Message from (\w+)\s*(.+) emblem-important CRITICAL/\1> \2/' \ >> "/tmp/notifications.log"