Skip to content

Instantly share code, notes, and snippets.

@JburkeRSAC
Created May 13, 2016 13:35
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 JburkeRSAC/e31063170460c821a62a418c7587460f to your computer and use it in GitHub Desktop.
Save JburkeRSAC/e31063170460c821a62a418c7587460f to your computer and use it in GitHub Desktop.
#!/bin/bash
# By jburke@wapacklabs.com
# This can be used to multi-thread search
time find $1 -name "*.txt" -print0 | xargs -0 -n1 -P24 grep -H "$2" > $2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment