我已经推荐了几次xml2包。它是一个有用的工具,可以将格式良好的XML数据转换为面向行的格式,可以使用grep或awk等进行简单提取。甚至在包中使用相应的2xml程序进行简单的更改。
debian软件包描述说:
Package: xml2
Source: xml2 (0.4-3.1)
Version: 0.4-3.1+b1
Installed-Size: 66
Maintainer: Patrick Schoenfeld <schoenfeld@debian.org>
Architecture: amd64
Depends: libc6 (>= 2.14), libxml2 (>= 2.7.4)
Description-en: Convert between XML, HTML, CSV and a line-oriented format
xml2 tools are used to convert XML, HTML and CSV to and from a
line-oriented format more amenable to processing by classic Unix
pipeline processing tools, like grep, sed, awk, cut, shell scripts,
and so forth.
Homepage: http://ofb.net/~egnor/xml2/
Tag: interface::commandline, role::program, use::converting,
works-with-format::html, works-with-format::xml, works-with::text
Section: utils
Priority: optional
Filename: pool/main/x/xml2/xml2_0.4-3.1+b1_amd64.deb
Size: 13912不幸的是,该主页字段是404死链接。
我想找到新的家,如果有的话,为它,以便我可以提供工作链接,并提交一个错误报告给debian,以纠正主页链接。看来我的google-fu还不够强大,不足以完成这项任务。
除了debian和其他发行版中的源文档之外,还有人知道xml2现在“住在哪里”吗?有主页吗?github回购?这是弃置器吗?
答案中提到的github克隆/xml2 2回购现在似乎也被放弃了。其中有一个叉子是在2019年1月更新的,它将原来的html文档转换为减价:
发布于 2017-08-02 19:01:46
github回购?
好吧,有https://github.com/clone/xml2。
Debian源代码直接结合了所有这些,并在https://tracker.debian.org/pkg/xml2上进行了超链接。
https://unix.stackexchange.com/questions/383507
复制相似问题