Bash String to Lower or Upper Case

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

Internal

tr

awk

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

bash 4

sed

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