Re: [CentOS] another sed question...

2008-05-31 Thread Filipe Brandenburger
On Fri, May 30, 2008 at 12:33 PM, Craig White <[EMAIL PROTECTED]> wrote: > where I'm taking the 'id:' field from each record and inserting an > underscore and the id into the 'attributes' label directly above. Just for fun, this is a one-line sed script that would change that file: sed -n -e '/^a

Re: [CentOS] another sed question...

2008-05-30 Thread Thomas Johansson
Craig White wrote: On Fri, 2008-05-30 at 20:26 +0200, Thomas Johansson wrote: Craig White wrote: Looking to change a yml file (yaml is a database type file) *** from --- !ruby/object:Right attributes: name: Personnel Admin action: index id: "1" controller: assessments --- !ruby/obj

Re: [CentOS] another sed question...

2008-05-30 Thread Craig White
On Fri, 2008-05-30 at 20:26 +0200, Thomas Johansson wrote: > Craig White wrote: > > Looking to change a yml file (yaml is a database type file) > > > > *** from > > --- !ruby/object:Right > > attributes: > > name: Personnel Admin > > action: index > > id: "1" > > controller: assessments

Re: [CentOS] another sed question...

2008-05-30 Thread Thomas Johansson
Craig White wrote: Looking to change a yml file (yaml is a database type file) *** from --- !ruby/object:Right attributes: name: Personnel Admin action: index id: "1" controller: assessments --- !ruby/object:Right attributes: name: Personnel Admin action: find id: "2" cont

Re: [CentOS] another sed question...

2008-05-30 Thread MHR
On Fri, May 30, 2008 at 9:33 AM, Craig White <[EMAIL PROTECTED]> wrote: > > Looking to change a yml file (yaml is a database type file) > > *** from > --- !ruby/object:Right > attributes: > name: Personnel Admin > action: index > id: "1" > controller: assessments > --- !ruby/object:Right > att

[CentOS] another sed question...

2008-05-30 Thread Craig White
Looking to change a yml file (yaml is a database type file) *** from --- !ruby/object:Right attributes: name: Personnel Admin action: index id: "1" controller: assessments --- !ruby/object:Right attributes: name: Personnel Admin action: find id: "2" controller: assessments **