The awk interpreter is lettercase sensitive. This means that [[variable_name?]]s that have different letter cases are distinct and separate from each other:
# The identifiers dog,Dog and DOG represent separate variables BEGIN { dog = "Benjamin" Dog = "Samba" DOG = "Bernie" printf "The three dogs are named %s, %s and %s.\n", dog, Dog, DOG }
Because awk is lettercase sensitive, pattern matching will only occur if the lettercase of the text matches that used in the pattern.
There are several ways to perform case insensitive letter matching:
The awk extraction and reporting language provides a variety of functions for converting strings to uppercase or to lowercase: