From a993c7d66f66af964772f23af6b3a9e7fb814a4b Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 12 Jan 2014 21:14:38 +0100 Subject: Fix use jq as tidier (json_xs randomly shuffles data). --- localtidygeojson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localtidygeojson') diff --git a/localtidygeojson b/localtidygeojson index 23d95c5..49f8c6e 100755 --- a/localtidygeojson +++ b/localtidygeojson @@ -16,8 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# Depends: libjson-xs-perl moreutils +# Depends: jq moreutils set -eu -json_xs < "$1" | perl -0 -pe 's/ /\t/g; s/},\s*{/}, {/g; s/\[\s*([\d.,]+)\s*([\d.]+)\s*\]/[$1 $2]/g' | sponge "$1" +jq . "$1" | perl -0 -pe 's/ /\t/g; s/},\s*{/}, {/g; s/\[\s*([\d.,]+)\s*([\d.]+)\s*\]/[$1 $2]/g' | sponge "$1" -- cgit v1.2.3