I have a textfile in which some words are printed in ALL CAPS. I want to be able to just convert everything in the textfile to lowercase, using sed. That means that the first sentence would then read, ‘i have a textfile in which some words are printed in all caps.’
I have a textfile in which some words are printed in ALL CAPS. I
Share
Here are two methods for doing the conversion using
trandsed:Using
trConvert uppercase to lowercase
Convert lowercase to uppercase
Using
sedon GNU (but not BSD or Mac)Convert uppercase to lowercase
Convert lowercase to uppercase
The reason the
sedversion doesn’t work on BSD or Mac is because those systems don’t support the\Lor\Uflags