Changed first egrep to grep