Skip to content

Instantly share code, notes, and snippets.

@cnlpete
Created September 6, 2010 11:06
Show Gist options
  • Save cnlpete/566906 to your computer and use it in GitHub Desktop.
Save cnlpete/566906 to your computer and use it in GitHub Desktop.
generate gpx-files from nmea-files
#!/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