Skip to content

Instantly share code, notes, and snippets.

@hevilp
Last active November 21, 2016 20:50
Show Gist options
  • Save hevilp/b267e763f33e70fb7e0b5575b459fec9 to your computer and use it in GitHub Desktop.
Save hevilp/b267e763f33e70fb7e0b5575b459fec9 to your computer and use it in GitHub Desktop.
#!/bin/bash
{
COUNTER=0
LON=100
LAT=200
jo type=FeatureCollection features[]=$(
while [ $COUNTER -lt 10 ]; do
echo The counter is $COUNTER
let COUNTER=COUNTER+1
json=$(jo type=Feature geometry=$(jo type=Point coordinates[]=$LON coordinates[]=$LAT) properties=$(jo name="Test"))
LON=$LON+1
LAT=$LAT+1
echo "$json"
done
)
} > 01test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment