[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Remove square brackets from Alerts
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Remove square brackets from Alerts
- From: Henrik Stoerner <henrik (at) hswn.dk>
- Date: Fri, 23 May 2008 10:38:06 +0200
- References: <48322D1E.60704 (at) zandahar.net>
- User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Tue, May 20, 2008 at 11:45:02AM +1000, Allan Spencer wrote:
> out that square brackets and a bunch of others are not supported so I
> need to know if I can remove them from the alert code or somehow
> generate the message in a way that it doesnt send them.
[snip]
> and the smsalert.sh
> echo "${BBALPHAMSG:0:160}" | gnokii --sendsms "$RCPT"
How about
echo "${BBALPHAMSG:0:160}" | \
sed -e 's!\[!(!' -e 's!\]!)!' \
gnokii --sendsms "$RCPT"
to simply replace the square brackets with plain ones ?
Henrik