SyntaxFix
Write A Post
Hire A Developer
Questions
Using GNU sed:
sed
sed 's/.*/\L&/'
Example:
$ foo="Some STRIng"; $ foo=$(echo "$foo" | sed 's/.*/\L&/') $ echo "$foo" some string