get_line_cd_by_pref