fix
use egrep instead of grep