Este é um blog onde anoto dicas técnicas de informática e computação.
This is a blog where I write down technical tips on computing.
Be aware that some resources used in this blog may use cookies to collect information used by Ads and Google Analytics. I do not monetize from this website, neither require or use personal information.
Sunday, October 16, 2016
Parse XML using bash
$ rdom() { local IFS=\>; read -d\< E C; }; $ sed -n '/variable/,/variable/p' CC_SRV_ReloadExec_Pfe_SETENV.xml | grep -v variable | while rdom; do [ "${E:0:1}" != "/" ] && { echo "<<<$E:$C>>>"; } done
No comments:
Post a Comment