-
Notifications
You must be signed in to change notification settings - Fork 6
/
go
executable file
·22 lines (15 loc) · 644 Bytes
/
go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -e
set -u
date=`date +%Y%m%d`
(
wget --no-check-certificate 'https://www.lendingclub.com/fileDownload.action?file=LoanStats.csv&type=gen' -O >(tail -n+2 | perl -pe 's/,$//;' > LoanStats.csv)
wget --no-check-certificate 'http://www.lendingclub.com/fileDownload.action?file=InFundingStats3.csv&type=gen' -O >(tail -n+2 | perl -pe 's/,$//;' > InFundingStats3.csv)
R --vanilla -f combined.r
) \
2>&1 | tee go-$date.log
grep http go-$date.log| grep Detail| cut -f2 -d' '| while read url
do
printf "$url\t"
wget --quiet --no-check-certificate -O - $url | grep "% funded)"
done | tee go-20130425.status