Bash String to Lower or Upper Case

From NovaOrdis Knowledge Base
Revision as of 01:35, 11 December 2019 by Ovidiu (talk | contribs) (→‎awk)
Jump to navigation Jump to search

Internal

tr

awk

NOT TESTED

echo "${text}" | awk '{print tolower($0)}'

bash 4

sed

echo "${text}" | sed -e 's/\(.*\)/\L\1/'