Re: bash: how run script when file is put into folger and how parse xml file via bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 12, 2010 at 14:45:32 +0200,
  Dario Lesca <d.lesca@xxxxxxxxxx> wrote:
> 
> b) the file is a simple xml and I must parser it and convert it to a csv
> file with bash script.
> 
> For b) now I use grep+sed+awk, but I'm looking for a best and more solid
> method for extract only some specific field from the file.

You can use xsltproc with an appropriate style sheet. I used this to parse
some xml output from svn for building snapshots for colossus. I didn't find
the documentation on using style sheets for processing xml all that great
but was able to get that simple case to work.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux