diff bni-update @ 4:3be5d1679ce0

Add bni, rewrite javascript
author nanaya <me@myconan.net>
date Thu, 19 Nov 2015 02:19:03 +0900
parents
children f6e6bf7f038b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bni-update	Thu Nov 19 02:19:03 2015 +0900
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+set -u
+
+_outdir="$(dirname "${0}")"
+
+curl http://bni.co.id/informasivalas.aspx \
+  | grep JPY \
+  | sed -e 's/[^0-9]*\([0-9][0-9.]*\)[^0-9].*/\1/' \
+  > "${_outdir}/bni-jpyidr.txt"