Re: upper/lower case
| 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