summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSt33v <stephen.pratt@calamia.com.au>2015-12-06 16:55:24 +1100
committerSt33v <stephen.pratt@calamia.com.au>2015-12-06 16:55:24 +1100
commit93ca96f18a40c196ac610358d90a7b9bb53155dc (patch)
treec668d492e7f48c1dd9dfb9e0298470e7be76df56
parentd3e5bd16325487415ef03e849c6116615f31f874 (diff)
Added a few remarks
-rwxr-xr-xkmlstitch.sh3
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