DEV Community

Discussion on: File search (and more) with `find`

Collapse
 
bdmorin profile image
Brian • Edited

Have you looked at ripgrep?
github.com/BurntSushi/ripgrep

# time find ./ -type f -exec fgrep -HIi "perl" {} \; > /dev/null
5.57s user 8.48s system 82% cpu 17.034 total

Same command:
# time rg perl > /dev/null
0.08s user 0.17s system 587% cpu 0.043 total


Similar searchers:
# time ack perl > /dev/null  
0.45s user 0.21s system 99% cpu 0.664 total

# time ag perl > /dev/null
0.10s user 0.33s system 308% cpu 0.137 total

ripgrep is amazing.