in reply to Changing the first word to uppercase
orperl -pe"s/(.)/uc($1)/e" infile > outfile
while (<>) { s/(.)/uc($1)/e; print; }
Update: Oops, switch lc with uc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing the first word to uppercase
by bmann (Priest) on Feb 14, 2008 at 01:18 UTC | |
by ikegami (Patriarch) on Feb 14, 2008 at 18:24 UTC | |
|
Re^2: Changing the first word to uppercase
by Anonymous Monk on Feb 14, 2008 at 00:35 UTC | |
by ikegami (Patriarch) on Feb 14, 2008 at 00:39 UTC | |
by Anonymous Monk on Feb 14, 2008 at 00:58 UTC | |
|
Re^2: Changing the first word to uppercase
by Anonymous Monk on Feb 14, 2008 at 01:37 UTC | |
by ikegami (Patriarch) on Feb 14, 2008 at 18:20 UTC |