sed: capitalizing the first letter of a line
I'd like to instruct sed to capitalize the first letter of every line. I've gotten this far:
That seems to work (yay!). Say I'd like to do it for multiple different lines of text, then of course I could do something like this:
$ echo "the first word is not capitalized." | sed 's/^t/T/'
The first word is not capitalized.
etcetera, and make a huge command. But that is not very elegant. There has to be a nice way to do it. Do you know one?
$ cat bigstory.txt | sed 's/^a/A/; s/^b/B/; s/^c/C/; s/^d/D/; s/^e/E/'
Nunca te acostarás, sin saber una cosa más.