let data = 'MULTIPOLYGON(((-61.2811499892424 -51.8650394644694, -61.2811499892424 -51.8650394644694)),((-59.6938009153582 -52.2130104476997, ( -59.6929605766079 -52.2129007110094,-59.6938009153582 -52.2130104476997),((-51.3119402806134,-59.5789385998322 -51.3125898252842)))';
data.replace(/[)(]/gm, '');
console.log(data); a1=$(cat file1.txt |egrep -o '^a=[^\r\n]+$' |head -n1 |cut -d"=" -f2)
b1=$(cat file1.txt |egrep -o '^b=[^\r\n]+$' |head -n1 |cut -d"=" -f2)
if [ -n "${a1}" -a -n "${b1}" ]; then
echo "${a1}-${b1}" >>out.txt
fils -l /dev/block/vold/