t2020-04-23T04-57-21-674824.md - tgtimes - The Gopher Times
(HTM) git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
t2020-04-23T04-57-21-674824.md (920B)
---
1 # 2020-04-23 04:57:21.674824 UTC (+0000)
2
3 xml2tsv added to Bitreich
4
5 xml2tsv is a simple tool to turn an XML file into a list of
6 tab-separated records. The filter reads an XML file from stdin and
7 writes a tab-separated-values file on stdout.
8
9 xml2tsv makes XML content easier to parse using standard unix tools,
10 like grep, sed, awk, etc. For instance, you can get a list of the titles
11 of the last commits to annna's repo using something like:
12
13 curl -s gopher://bitreich.org/0/scm/annna/atom.xml | \
14 xml2tsv | grep -E "/feed/entry/title" | cut -f 3 | head
15
16 or a pretty print-out of headlines of your preferred online journal
17 with:
18
19 curl -s "http://undeadly.org/cgi?action=rss&items=10" | \
20 xml2tsv | grep -E '/rss/channel/item/(title|link)' | \
21 cut -f 2 | awk '{if (NR%2 ==0) printf(" "); print $0}'
22
23 xml2tsv is written and maintained by KatolaZ and is based on the
24 xmlparser library by Hiltjo Posthuma.
25