From: Reid Thompson Date: 2007-06-13T04:21:56+09:00 Subject: Re: Quick sed replacemnt On Wed, 2007-06-13 at 04:14 +0900, yitzhakbg wrote: > 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". > Thanks. > > Here's a sample file: > > # > # A skeletal controller > # > class organizationsController < ApplicationController > active_scaffold :organization > # layout "activescaffold" > end > perl -pi -e 's/organizationsController/OrganizationsController/' file