-
-
Save hevilp/b267e763f33e70fb7e0b5575b459fec9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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