Skip to content

Instantly share code, notes, and snippets.

@nbryan
Created March 19, 2018 17:11
Show Gist options
  • Select an option

  • Save nbryan/57507f7563a4a74242ffebfb0fc8ad95 to your computer and use it in GitHub Desktop.

Select an option

Save nbryan/57507f7563a4a74242ffebfb0fc8ad95 to your computer and use it in GitHub Desktop.
Check for changes in a file
#!/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