[asterisk-dev] CLI development questions

Dylan VanHerpen packetbell at gmail.com
Fri Aug 3 12:43:31 CDT 2007


Two other small CLI improvements: partial commands and grep

Instead of typing

          show version, or
          sh [tab] ver [tab]

only type the first unique characters, like IOS:

          sh ver

Grep-like functionality, as found in IOS would also be handy. Cisco's
implementation is limited, but very easy to use, for instance show run
| include foo.

          begin    Begin with the line that matches
          exclude  Exclude lines that match
          include  Include lines that match

But full blown grep would be great too:

          sip show channels | grep foo



More information about the asterisk-dev mailing list