[wellylug] perl - capitalize all text in file

michael at diaspora.gen.nz michael at diaspora.gen.nz
Wed Mar 30 21:41:40 NZST 2005


Grant McLean writes:
>Just in case you're still interested in a Perl solution:

>  perl -ne 'print uc' filename
>  perl -pe 'tr/a-z/A-Z/' filename
>  perl -n -i.bak -e 'print uc' filename

Far too long.

   perl -pe '$_ = uc' filename

:)
    -- michael.




More information about the wellylug mailing list