annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
1 #!/bin/sh
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
2
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
3 set -e
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
4 set -u
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
5
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
6 _outdir="$(dirname "${0}")"
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
7
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
8 curl http://bni.co.id/informasivalas.aspx \
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
9 | grep JPY \
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
10 | sed -e 's/[^0-9]*\([0-9][0-9.]*\)[^0-9].*/\1/' \
3be5d1679ce0 Add bni, rewrite javascript
nanaya <me@myconan.net>
parents:
diff changeset
11 > "${_outdir}/bni-jpyidr.txt"