> In a shell script, I need to capitalize the first lower-case letter on
> each line of a file. The first lower-case letter on each line need not
> be the first character on the line, since it may be preceeded by
> digits, upper-case letters, white space, or punctuation. I prefer a
> solution using sed, but an awk solution (not oawk) is acceptable.
> Several sample input and output lines are shown below:
> abc => Abc
> 1abc => 1Abc
> Abc => ABc
> ABC => ABC
> 123 => 123
> I spent about an hour playing with this, and found only
> ugly-in-the-extreme solutions. Any ideas?
$0=substr($0,1,i-1) toupper(substr($0,i,1)) substr($0,i+1)}1'
> Many thanks,