[wellylug] perl - capitalize all text in file

Mark Signal mark at remote-assist.co.nz
Wed Mar 30 20:56:26 NZST 2005


Embarrassingly easy when you know how

works perfectly

Thanks very much

cheers

Mark



John Fouhy wrote:
> Mark Signal wrote:
> 
>> I have a large text file containing a mixture of lowercase and 
>> uppercase text (and numbers). I need to make  all lowercase text 
>> become uppercase.
>>
>> I've done this before and forgotten the syntax - so much for my file 
>> organizing.
> 
> 
> Does it have to be perl?
> 
> --------mixedcase---------
> HelLo wOrLd!
> 
> ThiS IS a mIxED CasE filE.
> --------------------------
> 
> $ < mixedcase | tr a-z A-Z
> HELLO WORLD!
> 
> THIS IS A MIXED CASE FILE.
> 

-- 


Regards



Mark Signal
0274499115
http://www.remote-assist.co.nz


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005




More information about the wellylug mailing list