view bni-update @ 5:f6e6bf7f038b

Silence curl
author nanaya <me@myconan.net>
date Thu, 19 Nov 2015 02:21:43 +0900
parents 3be5d1679ce0
children a696cc8f1ee1
line wrap: on
line source

#!/bin/sh

set -e
set -u

_outdir="$(dirname "${0}")"

curl -s http://bni.co.id/informasivalas.aspx \
  | grep JPY \
  | sed -e 's/[^0-9]*\([0-9][0-9.]*\)[^0-9].*/\1/' \
  > "${_outdir}/bni-jpyidr.txt"