Re: need help with awk

2009-10-06 Thread Michael Pobega
On 0, Guillaume CHARDIN wrote: > Hi, > > In a backup process of some xen virtual machine, i need to extract in > the config file some informations (in fact the disk line) . > The line look like this : > disk = [ file:/path/to/file,sda1,w ] > my goal is to isolate le `file` part to us

Re: need help with awk

2009-10-06 Thread Kumar Appaiah
On Tue, Oct 06, 2009 at 06:27:12PM +0200, Guillaume CHARDIN wrote: > Thanks for your reply Kumar, You're welcome. > > > >BEGIN { proces_line = 0; } > > > >/startprocessing_regexp/ { process_line = 1 } > > > >process_line { > >/* Do stuff */ > >} > > > >/stopprocessing_regexp/ { proces

Re: need help with awk

2009-10-06 Thread Guillaume CHARDIN
Thanks for your reply Kumar, > >BEGIN { proces_line = 0; } > >/startprocessing_regexp/ { process_line = 1 } > >process_line { >/* Do stuff */ >} > >/stopprocessing_regexp/ { process_line = 1; } > I'm not familiar with the syntax you usei'm gonna look at it soon, but for sure your meth

Re: need help with awk

2009-10-06 Thread Kumar Appaiah
On Tue, Oct 06, 2009 at 04:41:43PM +0200, Guillaume CHARDIN wrote: > Hi, > > In a backup process of some xen virtual machine, i need to extract in > the config file some informations (in fact the disk line) . > The line look like this : > disk = [ file:/path/to/file,sda1,w ] > my goal