From 93ca96f18a40c196ac610358d90a7b9bb53155dc Mon Sep 17 00:00:00 2001 From: St33v Date: Sun, 6 Dec 2015 16:55:24 +1100 Subject: Added a few remarks --- kmlstitch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3