Modified .medips grep