Use match operator to validate file contents, instead of shelling out to...

... egrep.