need help with awk



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 use it later. I'm a beginner
with sed/grep and i dont know it its possible to just extract the part
between two given regexp. With awk its possible to extract LINES from
a file with this syntax `awk "/firstFoundRegexp/,/secondRegexp/"`
this kind of behavior can be applied on one file ?

Thanks for you help.

--
Guillaume


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: make dev problems
    ... > you lock yourself out. ... Could there be more sources that I need to extract? ... don't know how to make buildkernel. ... To unsubscribe, ...
    (freebsd-questions)
  • Re: How to grab music from remote cdrom?
    ... Not sure about cdda2wav will be able to use the share. ... The only trouble you can encounter is the program does not like it, ... why not extract the audio in that same computer? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: minidrive: Spinning up disk ... .not responding ...
    ... Subject: minidrive: Spinning up disk ... ... I need to extract the data from a ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: [Fwd: .img_bestanden]
    ... But you can mount a standard img-file: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... Trouble? ... i mounted the file but could not extract this old nero_made .img file. ...
    (Debian-User)
  • Re: need help with awk
    ... In a backup process of some xen virtual machine, i need to extract in ... the config file some informations. ... my goal is to isolate le `file` part to use it later. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)