So I was searching around and using the command tr
you can convert from lower case to upper case and vice versa. But is there a way to do this both at once?
So:
$ tr '[:upper:]' '[:lower:]' or $ tr A-Z a-z
Will turn "Hello World ABC" to "hello world abc", but what I want is "hELLO wORLD abc".
tr
.tr
requires two arguments;echo "FOO" | tr '[:upper:][:lower:]'
will not work. – Pepita