Skip to content

Instantly share code, notes, and snippets.

@hrobeers
Created July 17, 2019 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrobeers/0c6258acff6fde651dbfaff3b3450147 to your computer and use it in GitHub Desktop.
Save hrobeers/0c6258acff6fde651dbfaff3b3450147 to your computer and use it in GitHub Desktop.
Social media followers diff script
#! /bin/bash
# Built and tested for instagram
cat followers.txt | grep -E '^\s*\S+\s*$' | uniq | sort > followers.sorted
cat following.txt | grep -E '^\s*\S+\s*$' | uniq | sort > following.sorted
diff followers.sorted following.sorted | grep '>'
@hrobeers
Copy link
Author

TODO:

  • whitelist
  • history (timestamp the files?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment