Tag Archives: tr

AWK: convert into lower or upper cases

In order to convert a bash variable to lower case with awk, just use this command: a="UPPER CASE" echo "$a" | awk ‘{print tolower($0)}’a="UPPER CASE" echo "$a" | awk ‘{print tolower($0)}’ If you want to convert the content of a … Continue reading

Posted in Linux | Tagged , | Leave a comment