Hi,

Am Mittwoch, 13. Jun 2007, 04:14:28 +0900 schrieb yitzhakbg:
> I need a quicky which I can't do in sed and I did it very clumsily.
> I need to filter the following file, changing the class name's first
> letter to upper case.
> For example, rewrite the file with the word "organizationsController"
> changed to "OrganizationsController".

  ruby -pe 'gsub(/organizationsController/){|x|x.capitalize}'
  ruby -pe 'gsub(/\borganizationsController\b/){|x|x.capitalize}'

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de