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>
In reply to Re^3: Changing the first word to uppercase
by hipowls
in thread Changing the first word to uppercase
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |