From 92ac263111aa47f4a35aa997c8d7d29b1b3076ed Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 4 Mar 2021 16:12:13 +0800 Subject: update --- alias | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'alias') diff --git a/alias b/alias index 8aa63eb..3bde69b 100644 --- a/alias +++ b/alias @@ -320,6 +320,9 @@ mvt_decode() { big52utf8() { iconv -f BIG-5 -t UTF-8 } +utf82big5() { + iconv -t BIG-5 -f UTF-8 +} urlencode() { perl -lpe 's/([^A-Za-z0-9.\/:])/sprintf("%%%02X", ord($1))/seg' # Alternative: @@ -328,6 +331,9 @@ urlencode() { bak() { cp $1 $1.bak } +wrap2geojson() { + jq -s '{ type: "FeatureCollection", features: . }' +} # task alias tk='task' -- cgit v1.2.3-70-g09d2