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:
Keith 2018-09-04 20:33:44 +02:00
parent d870e0e782
commit 885c60f358

View file

@ -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