egrep seems to do the trick