annotate bni-update @ 5:f6e6bf7f038b

Silence curl
author nanaya <me@myconan.net>
date Thu, 19 Nov 2015 02:21:43 +0900
parents 3be5d1679ce0
children a696cc8f1ee1
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
5
f6e6bf7f038b Silence curl
nanaya <me@myconan.net>
parents: 4
diff changeset
8 curl -s http://bni.co.id/informasivalas.aspx \
4
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"