Use 'as delim' in chans() utility.

This commit is contained in:
Wile E. Coyote 2019-05-04 07:47:21 +00:00
parent da90219511
commit 90d30a78b7

View file

@ -12,14 +12,14 @@ waitfor0calls () {
done done
} }
chans () { chans ()
while [ 1 == 1 ] {
do while [ 1 == 1 ]; do
_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` _output=`fs_cli -x 'show channels as delim |' | csvcut -d\| -c 3,2,6,8,10,11,13,15,18 | csvlook -I`;
clear clear;
echo "$_output" echo "$_output";
sleep 1 sleep 1;
done done
} }
topcalls () { topcalls () {