diff options
Diffstat (limited to 'kmlstitch.sh')
| -rwxr-xr-x | kmlstitch.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmlstitch.sh b/kmlstitch.sh index 5a254a3..7257d9c 100755 --- a/kmlstitch.sh +++ b/kmlstitch.sh @@ -23,11 +23,12 @@ unzipKmz() extractTrack() { if [ -f doc.kml ] - then # + then # look for instances of the 'placemark' tag in the file placelines=$( lineNums placemark doc.kml) startline=$(echo $placelines | cut -d ' ' -f 1 ) endline=$(echo $placelines | rev | cut -d ' ' -f 1 | rev) echo $FUNCNAME + # write the contents of the placemark tag to the output file sed -n "${startline},${endline}p" doc.kml >> ${outfile} echo $FUNCNAME: placelines: $placelines echo startline: $startline |
