while () { print C $_ if /^abcde.*PARTNAME$/; }