Skip to content

Instantly share code, notes, and snippets.

@benbek
Last active May 2, 2016 15:24
Show Gist options
  • Save benbek/7a7b4fae754b66e2d190 to your computer and use it in GitHub Desktop.
Save benbek/7a7b4fae754b66e2d190 to your computer and use it in GitHub Desktop.
OS X: Read off a list and perform a command
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