For my CheckCodingGuidelines script. I want:#ifndef GAIN_MODULE_H#define GAIN_MODULE_HTo passAnd:#ifndef __GAIN_MODULE_H#define __GAIN_MODULE_HTo fail (echo: Error Rule25 at $line)How do I do that?
Check if correctly spelled
text processing
awk '  /^[[:blank:]]*#[[:blank:]]*(define|ifndef)[[:blank:]]+_/ {    print Error Rule25 at  FNR  }' file.h >&2