#!/bin/bash OUTDIR=compressed mkdir -p $OUTDIR for gpx in $(find . -iname "*.gpx"); do echo -n "Compressing ${gpx}... " ../../../gpx_web_viewer/python/gpxsimplify.sh -f ${gpx} -d 10 > compressed/${gpx} echo "Done!" done