Skip to content

Commit

Permalink
ScriptGeo: remove .txt files generate
Browse files Browse the repository at this point in the history
  • Loading branch information
Asam237 committed Dec 4, 2021
1 parent a4a1247 commit 13a2ce2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/geo_cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ txt_to_json () {
jq -Rs '[ split("\n")[] | select(length > 0)
| split(":") | {name: .[0], asciiname: .[1], alternativenames: .[2], lat: .[3], long: .[4]} ]' CMGEOFinal.txt > list_geo_cm.json

rm CMNAME.txt CMALTERNATIVENAME.txt CMASCINAME.txt CMLATITUDE.txt CMLONGITUDE.txt CMGEOFinal.txt
}

txt_to_json

0 comments on commit 13a2ce2

Please sign in to comment.