fix "Argument list too long" error of grep.