Created
September 6, 2010 11:06
-
-
Save cnlpete/566906 to your computer and use it in GitHub Desktop.
generate gpx-files from nmea-files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Nicht genügend Argumente!" | |
echo "Benutzung: $0 file [file2 [...]]" | |
exit 1 | |
else | |
while [ $# -gt 0 ] | |
do | |
for FILE in $1 | |
do | |
if test -f $FILE; then | |
echo "$FILE -> ${FILE/%.nmea/.gpx}" | |
gpsbabel -v -i nmea -f $FILE -o gpx -F ${FILE/%.nmea/.gpx} | |
else | |
echo "[E] $FILE nicht gefunden ..." | |
fi | |
done | |
shift | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment