ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Q: Чем распарсить xml в bash скрипте?
Date: Tue, 18 Sep 2007 19:37:27 +0400
Message-ID: <20070918153727.GU5297@solemn.turbinal> (raw)
In-Reply-To: <46EFB94E.3050503@solin.spb.ru>

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]

On Tue, Sep 18, 2007 at 03:41:02PM +0400, Aleksey Avdeev wrote:
>   Чем удобно парсить xml в bash скриптах?
> 
>   Если решить задачу в лоб, то выдрать содержимое нужных секций я смогу
> спомощью awk. Но как приобразовать присутствующие в тексте спецсимволы
> из того как они присутствуют в xml обратно -- не знаю (точнее, незнаю
> стандартного списка соответствий).
> 
> PS: Речь идёт о результате работы svn log --xml ...

Пётр Савельев писал 30 Aug 2006 про XMLgawk.
Искать xmlgawk site:lists.altlinux.ru

На перле тоже относительно просто сделать что угодно.

$ xml_grep --nowrap 'color[@name="white"]' /usr/lib/ImageMagick-6.3.4/config/colors.xml 
<color color="rgb(255,255,255)" compliance="SVG, X11" name="white"/>
$

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2007-09-18 15:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 11:41 Aleksey Avdeev
2007-09-18 11:56 ` Alexey Rusakov
2007-09-18 12:15   ` Aleksey Avdeev
2007-09-18 11:58 ` Kirill A. Shutemov
2007-09-18 12:05   ` Aleksey Avdeev
2007-09-18 12:24     ` Mykola S. Grechukh
2007-09-18 12:22       ` Aleksey Avdeev
2007-09-18 12:46         ` Mykola S. Grechukh
2007-09-18 12:05 ` Michael Shigorin
2007-09-18 12:14   ` Aleksey Avdeev
2007-09-18 12:43     ` Alexander Bokovoy
2007-09-18 13:19 ` Sergey Bolshakov
2007-09-18 14:18 ` Андрей Черепанов
2007-09-18 15:37 ` Alexey Tourbin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070918153727.GU5297@solemn.turbinal \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git