-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_extra_chains.sh
17 lines (16 loc) · 1.1 KB
/
build_extra_chains.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
extra_chains=(
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/burger-king/burger-king-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/costa-coffee/costa-coffee-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/kfc/kfc-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/mcdonalds/mcdonalds-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/nandos/nandos-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/pret/pret-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/wetherspoon/wetherspoon-eotho.csv"
"https://raw.githubusercontent.com/fryford/eatouttohelpout/master/chain-restaurants/whitbread/whitbread-eotho.csv"
)
for f in ${extra_chains[*]}
do
echo "Processing $f"
curl --fail -L $f | tail -n +2 | cut -f1,6,7,8 -d, | awk -F, -f reduce_precision.awk >> target/reduced_pubs.csv
done