replace egrep with grep