annotate bni-update @ 12:13d740477326
Split off fetcher functions
author |
nanaya <me@myconan.net> |
date |
Fri, 17 Jun 2016 10:42:55 +0900 |
parents |
a696cc8f1ee1 |
children |
4391020b8ebd |
rev |
line source |
4
|
1 #!/bin/sh
|
|
2
|
|
3 set -e
|
|
4 set -u
|
|
5
|
6
|
6 PATH="${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
|
|
7
|
4
|
8 _outdir="$(dirname "${0}")"
|
|
9
|
5
|
10 curl -s http://bni.co.id/informasivalas.aspx \
|
4
|
11 | grep JPY \
|
|
12 | sed -e 's/[^0-9]*\([0-9][0-9.]*\)[^0-9].*/\1/' \
|
|
13 > "${_outdir}/bni-jpyidr.txt"
|