Always output name column and satinize output

This commit is contained in:
phl0 2017-01-13 08:48:22 +01:00
parent bd011de2ca
commit b7f10a6862
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -90,7 +90,7 @@ then
fi
# Generate new file
curl 'http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=users&format=csv&header=0' 2>/dev/null | awk -F"," '{printf "%s\t%s\t%s\n", $1, $2, $4 == "" ? $3 : $4}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDFILE}
curl 'http://www.dmr-marc.net/cgi-bin/trbo-database/datadump.cgi?table=users&format=csv&header=0' 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s\t%s\t%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDFILE}
# Restart MMDVMHost
eval ${RESTARTCOMMAND}