Re: upper/lower case

"'Ruud H.G. van Tol' [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 2015-12-12 13:05, [email protected] [sed-users] wrote:

>>    perl -aF\; -pe'$F[2*($.>1)]=~s/(\w+)/\u\L$1/g;$_=join";",@F' input.txt
>
>   This is not exactly foolproof, since it alters the first field of the first line of
>   input.txt.
>
>   One way to skip the first line:
>
> perl -aF\; -pe'$F[$.>1?2:next]=~s/(\w+)/\u\L$1/g;$_=join";",@F' input.txt

Indeed + thanks.

-- Ruud
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.