11 lines
398 B
Makefile
11 lines
398 B
Makefile
run:
|
|
go run main.go
|
|
|
|
polls:
|
|
mkdir -p data/polls
|
|
rm data/polls/president_polls.csv
|
|
cd data/polls && wget https://projects.fivethirtyeight.com/polls/data/president_polls.csv
|
|
cat data/polls/president_polls.csv | awk -F, 'NR==1 {print; next} $$13 != ""' > data/polls/president_polls_state.csv
|
|
# cd data/polls && awk -F, 'NR == 1 || $13 != ""' president_polls.csv > president_polls_state.csv
|
|
|