Merge pull request #127 from s-s-s/patch-1

Small code optimization by CT2JAY
This commit is contained in:
Kim - DG9VH 2017-03-16 13:57:26 +01:00 committed by GitHub
commit abce4cfb98

View file

@ -29,7 +29,7 @@
############################################################################### ###############################################################################
# #
#Edit by R2AJV #Edit by R2AJV
# #Edit by CT2JAY
# Full path to DMR ID file # Full path to DMR ID file
@ -62,10 +62,7 @@ fi
#rm -f /tmp/DMRIds.dat.$(date +%d%m%y) #rm -f /tmp/DMRIds.dat.$(date +%d%m%y)
# Uncomment it if you want to get the data from database of the BrandMeister network # Uncomment it if you want to get the data from database of the BrandMeister network
wget http://registry.dstar.su/dmr/DMRIds.php -O DMRIds-temp1.dat curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null | sed -e 's/[[:space:]]\+/ /g' > ${DMRIDFILE}
cat DMRIds-temp1.dat | sed -e 's/ /\t\t/g' > DMRIds-temp2.dat mv /tmp/DMRIds.dat.$(date +%d%m%y) ${DMRIDFILE}
cat DMRIds-temp2.dat | sed -e 's/\t/ /g' > DMRIds-temp3.dat rm -f /tmp/DMRIds.dat.$(date +%d%m%y)
cat DMRIds-temp3.dat | sed -e 's/ / /g' > ${DMRIDFILE}
rm -f DMRIds-temp1.dat
rm -f DMRIds-temp2.dat
rm -f DMRIds-temp3.dat