Bash String to Lower or Upper Case

From NovaOrdis Knowledge Base
Revision as of 01:35, 11 December 2019 by Ovidiu (talk | contribs) (→‎sed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

tr

awk

NOT TESTED

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

bash 4

sed

NOT TESTED

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