Bij deze dan de commando’s om het eindresultaat te krijgen. Werkt op een linux gebaseerd systeem met bash, cat, sed en gpsbabel.

Mijn result.csv bestaat nu uit ruim 67000 punten.

Combine all your gpx files into one

cat *.gpx > $temp_file1

remove the first two lines of each original file, containing the header.

sed -n ‘/xml/!p’ $temp_file1 > $temp_file2

remove the ending from each original file, thus the footer

sed -n ‘/gpx/!p’ $temp_file2 > $temp_file3

Append only once a header and footer.

In this header file the xml scheme is defined and its start the <gpx tag.

The footer file only contains .

cat $header_file $temp_file3 $footer_file > $output_file

create from the one file containing all my tracks a nice csv file with lat, lon, altitude, date and time

gpsbabel -t -i gpx -f $output_file.gpx -o unicsv -F result.csv