Hi,

Am Mittwoch, 13. Jun 2007, 07:20:01 +0900 schrieb Bertram Scharpf:
>   ruby -pe 'gsub(/organizationsController/){|x|x.capitalize}'
>   ruby -pe 'gsub(/\borganizationsController\b/){|x|x.capitalize}'

__Sorry__! String#capitalize will destroy the camel case
spelling.

Here's another one:

  ruby -i -pe 'gsub(/\bo(?=rganizationsController\b)/){|x|x.upcase}'

Bertram


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