case sensitivity

Indentifier names

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
	dog = "Benjamin"
	Dog = "Samba"
	DOG = "Bernie"
	printf "The three dogs are named %s, %s and %s.\n", dog, Dog, DOG

Pattern matching

Because awk is lettercase sensitive, pattern matching will only occur if the lettercase of the text matches that used in the pattern.

Performing case insensitive matching

There are several ways to perform case insensitive letter matching:

Using a character list

Converting the data to lowercase before attempting to match

The awk extraction and reporting language provides a variety of functions for converting strings to uppercase or to lowercase: