RCCN shell functions, fixup chans() display
There can be commas in some field data output by fs show channels, so pass the output through sed to strip that and prepare for csvcut.
This commit is contained in:
parent
d870e0e782
commit
885c60f358
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ waitfor0calls () {
|
|||
chans () {
|
||||
while [ 1 == 1 ]
|
||||
do
|
||||
_output=`fs_cli -x 'show channels' | csvcut -c 3,2,6,8,10,11,13,15,18 | csvlook -I`
|
||||
_output=`fs_cli -x 'show channels' | head -n -3 | sed -E 's/\{([^,]*),([^}]*)}/{\1\2}/' | csvcut -c 3,2,6,8,10,11,13,15,18 | csvlook -I`
|
||||
clear
|
||||
echo "$_output"
|
||||
sleep 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue