What's being processed: #ryanakca <@Quizbuntu> ryanakca: ping What I want it to be changed to: #ryanakca <@Quizbuntu> ryanakca: ping What's being process ex #2: #ubuntu ryanakca: How do you add ? to: #ubuntu ryanakca: How do you add ? What the script does in the 'while' part is assign '#channelname' to 'heading', and ' message' to 'message'. notify-send then pops up a bubble. the "<" in the original version is because sed was cutting off the initial '<' in '' ORIGINAL: #!/bin/sh ssh 192.168.1.101 ": > .irssi/fnotify ; tail -f .irssi/fnotify " | sed -u 's/[<@&]//g' | while read heading message; do /usr/bin/notify-send -u critical -c im.received -i /usr/share/icons/default.kde/48x48/apps/edu_languages.png -t 300000 -- "${heading}" "<${message}"; done CURRENT: #!/bin/sh ssh 192.168.1.101 ": > .irssi/fnotify ; tail -f .irssi/fnotify " | sed 's#^<\([^<>]*\)>#&#g' | while read heading message; do /usr/bin/notify-send -u critical -c im.received -i /usr/share/icons/default.kde/48x48/apps/edu_languages.png -t 200000 -- "${heading}" "<${message}"; done FAILED TEST: #!/bin/sh ssh 192.168.1.101 ": > .irssi/fnotify ; tail -f .irssi/fnotify " | sed 's#<\([^<>]*\)>#&#g' | while read heading message; do echo "{heading} <${message}"; done