public
Last active

convert new tango files to gpx files - tango2gpx

  • Download Gist
convertnew.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.