in reply to Re^2: Changing the first word to uppercase
in thread Changing the first word to uppercase
If you want to change every line in some files then
you can use a condition to change just some linesperl -pe's/^([[:alpha:]]+)/ uc $1 /e' -i.bak <file list>
The original file is saved with a extention of .bakperl -pe's/^([[:alpha:]]+)/ uc $1 /e if condition' -i.bak <file list>
|
|---|