4 ms·
Whoops. Too late to edit, but a correction: growlnotify -m "Success! " (the space tells bash to treat the exclamation point as text)
by paulbaumgart 15y ago
Whoops. Too late to edit, but a correction:
growlnotify -m "Success! "
(the space tells bash to treat the exclamation point as text)
- rcfox 15y agoOr just use \!
- deleted 15y ago[deleted]
- paulbaumgart 15y agoGood call. Though for multi-word messages, you'd have to do something like: growlnotify -m "$(echo Great\! Success\!)"
- qntm 15y agoFor arbitrary messages: sub escape { my $arg = shift; $arg =~ s/([^a-zA-Z0-9_])/\\$1/g; return $arg; }