Last active
May 2, 2016 15:24
-
-
Save benbek/7a7b4fae754b66e2d190 to your computer and use it in GitHub Desktop.
OS X: Read off a list and perform a command
This file contains 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
cat FILE | ruby -e 'puts STDIN.readlines.shuffle' | xargs -t -I {} curl -x {}:80 -U {user}:{password} -o ~/Desktop/whatever/{} -m 15 'https://www.cnn.com/' | |
cd ~/Desktop/whatever | |
grep -il '\\n,\\x22String that exists' * | sort | wc -l | |
grep -iL '\\n,\\x22String that does not\\x22' * | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment