Small code optimization by CT2JAY
Small code optimization by CT2JAY
This commit is contained in:
parent
ed3db33437
commit
fc108b56e5
1 changed files with 5 additions and 8 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue