Skip to content

@timabell /convertnew.sh
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
convert new tango files to gpx files - tango2gpx
#!/bin/bash
# convert new tango files to gpx files
# relies on convert2gpx to do actual conversion http://www.tangogps.org/downloads/convert2gpx.pl
# folder layout:
# first arg - source files from tangogps logging
# second arg - output folder
input="$1"
output="$2"
for src in `cd "$input" && ls *.log | sort`;
do
# echo "looking for $output/$src.gpx"
dst="$output/$src.gpx"
if [ -f "$dst" ]
then
echo "ignoring exisiting file $src"
else
echo "processing new file $src"
./convert2gpx > "$dst" < "$input/$src"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.