I upgraded recently to Asterisk SVN-branch-1.2-r25165M the commandline asterisk -rx 'sip show peers' returns with the first line: on Is that a bug, or how can I omit it? I used: asterisk -rx 'sip show peers'|grep OK|sort | tee /dev/tty |wc -l; echo " registered at ELMIT" which results (because of on) to: Binary file (standard input) matches 1 registered at ELMIT
On Thu, May 11, 2006 at 08:28:45AM +0800, Ronald Wiplinger wrote:> I upgraded recently to Asterisk SVN-branch-1.2-r25165M > > the commandline > asterisk -rx 'sip show peers' > > returns with the first line: > on > > Is that a bug, or how can I omit it? > > I used: > asterisk -rx 'sip show peers'|grep OK|sort | tee /dev/tty |wc -l; echo " > registered at ELMIT" > > which results (because of on) to: > > Binary file (standard input) matchesuse 'grep -a' (grep --text) -- Tzafrir