This is elementary:
awk '/^[^C]/'
If you omit the {} section of awk, which means the same as {print} , or print a line. And // is the re-filter that applies to stdin. Only those lines matching the filter will be processed.
^[^C] is a regression of the regular. The first ^ is an anchor, this means the beginning of a line; and [^C] is a character class that means any character except C.
source share