You should look at both fgrep and egrep... https://github.com/search?q=org%3Ayast+fgrep&type=code https://github.com/search?q=org%3Ayast+egrep&type=code