Created
March 19, 2018 17:11
-
-
Save nbryan/57507f7563a4a74242ffebfb0fc8ad95 to your computer and use it in GitHub Desktop.
Check for changes in a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # chmod +x differ.sh before running | |
| curl https://projects.fivethirtyeight.com/trump-approval-data/approval_topline.csv > new_data.csv | |
| diff old_data.csv new_data.csv | |
| mv new_data.csv old_data.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment