some small editing to get data in right format

some small editing to get data in right format
This commit is contained in:
Sergei 2017-03-16 14:07:11 +03:00 committed by GitHub
parent 8b908fddec
commit 2e345aad38

View file

@ -91,7 +91,13 @@ then
fi
# Generate new file
curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null > ${DMRIDFILE}
wget http://registry.dstar.su/dmr/DMRIds.php -O DMRIds-temp1.dat
cat DMRIds-temp1.dat | sed -e 's/ /\t\t/g' > DMRIds-temp2.dat
cat DMRIds-temp2.dat | sed -e 's/\t/ /g' > DMRIds-temp3.dat
cat DMRIds-temp3.dat | sed -e 's/ / /g' > DMRIds.dat
rm -f DMRIds-temp1.dat
rm -f DMRIds-temp2.dat
rm -f DMRIds-temp3.dat
# Restart MMDVMHost
eval ${RESTARTCOMMAND}