Quantcast
Channel: Generate tree output from specific/general XML file in Bash - Ask Ubuntu
Viewing all articles
Browse latest Browse all 3

Answer by user216043 for Generate tree output from specific/general XML file in Bash

$
0
0

(If not already installed, install xidel)

xidel ex.xml  \  -e '//@display/concat(substring("------",1,count(ancestor::*)),">",.)'
  • substring("------",1,n) is a dirty way of building a string with n "-"

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>