You are on page 1of 1

Script to Clean and Run the Python Script:

#!/bin/bash
#Joshua Anzalone
#Project_3
rm *.png
rm Bike_Graphs.gif
rm idego-trips-2018-q2.csv.zip
rm indego-trips-2018-q2.csv
rm indego-trips-2018-q21.csv
rm P1.csv

curl -k https://u626n26h74f16ig1p3pt0f2g-wpengine.netdna-ssl.com/wp-
content/uploads/2018/09/indego-trips-2018-q2.csv.zip -o idego-trips-2018-q2.csv.zip

unzip idego-trips-2018-q2.csv.zip

(head -1 indego-trips-2018-q2.csv;sort <(sed -n '2,$p' indego-trips-2018-q2.csv)) | uniq > indego-trips-


2018-q21.csv

sed 's/\-39/39/g' indego-trips-2018-q21.csv > P1.csv

./Project_3.sh

rm NGS_Topo_US_2D.png
#This line works by merging all the images labeled 1-30 in order to a GIF
convert -delay 200 *.png Bike_Graphs.gif

You might also like