Yitzhak Bar Geva
6/12/2007 7:36:00 PM
Thank you, but you still didn't get it. organizationscontroller is
only an example. It could be anything else
On Jun 12, 10:26 pm, yitzhakbg <yitzha...@gmail.com> wrote:
> Sorry, You didn't understand. The class name can be anything. Whatever
> it is, I want the first changed to upper case. If you can show me how
> to do it in Sed, that's fine. I found it messy and tried writing a
> Ruby script. It also came out a little messy. Can you help me?
>
> On Jun 12, 10:20 pm, Reid Thompson <Reid.Thomp...@ateb.com> wrote:
>
> > 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
>
> > sed 's/organizationsController/OrganizationsController/' file > newfile