Bash String to Lower or Upper Case: Difference between revisions
Jump to navigation
Jump to search
(→awk) |
(→awk) |
||
Line 6: | Line 6: | ||
=awk= | =awk= | ||
<font color= | <font color=darkgray>NOT TESTED</FONT> | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
echo "${text}" | awk '{print tolower($0)}' | echo "${text}" | awk '{print tolower($0)}' |
Revision as of 01:35, 11 December 2019
Internal
tr
awk
NOT TESTED
echo "${text}" | awk '{print tolower($0)}'
bash 4
sed
echo "${text}" | sed -e 's/\(.*\)/\L\1/'