Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 11 lines (9 sloc) 440 Bytes
echo "parallel grep"
echo "============="
time cat hashes_to_find.txt | xargs -P4 -I{} grep ^{} $1
echo "egrep"
echo "====="
time grep -E `cat hashes_to_find.txt | python -c "import sys; print('|'.join('^' + line.strip() for line in sys.stdin))"` $1
echo "fgrep"
echo "====="
time grep -F "`cat hashes_to_find.txt`" $1 | grep -E `cat hashes_to_find.txt | python -c "import sys; print('|'.join('^' + line.strip() for line in sys.stdin))"`