Use grep instead of sed because on Solaris sed doesn't copy null bytes and