awk String manipulation functions Convert string to lower case


Example

AWK often used for manipulating entire files containing a list of strings. Let's say file awk_test_file.txt contains:

First String
Second String
Third String

To convert all the strings to lower case execute:

awk '{ print tolower($0) }' awk_test_file.txt

This will result:

first string
second string
third string