diff options
author | typebrook <typebrook@gmail.com> | 2019-11-12 10:22:03 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-11-12 10:22:03 +0800 |
commit | 7b27f297c6ac9b21b5611e49e38e37e32f01ecad (patch) | |
tree | d95a72543cb96c209bb92c5b96859b7c5d2515a5 /scripts/csv2geojson | |
parent | 69311c7f5967711e360ae30308e41bc68646b3a7 (diff) |
update
Diffstat (limited to 'scripts/csv2geojson')
-rwxr-xr-x | scripts/csv2geojson | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/csv2geojson b/scripts/csv2geojson index e3f0a74..085e12e 100755 --- a/scripts/csv2geojson +++ b/scripts/csv2geojson | |||
@@ -18,7 +18,7 @@ done | |||
18 | if [ "$lon_col" != "0" ]; then | 18 | if [ "$lon_col" != "0" ]; then |
19 | # show each field with index in csv | 19 | # show each field with index in csv |
20 | echo -------------- > /dev/tty | 20 | echo -------------- > /dev/tty |
21 | head -1 < $csv | sed 's/,/ /g' | awk '{for (i=1; i<=NF; i++) printf $i "_" i " "; print ""}' > /dev/tty | 21 | head -1 < $csv | awk -F',' '{for (i=1; i<=NF; i++) printf $i "_" i " "; print ""}' > /dev/tty |
22 | echo -------------- > /dev/tty | 22 | echo -------------- > /dev/tty |
23 | echo > /dev/tty | 23 | echo > /dev/tty |
24 | 24 | ||