shell生成简单格式的xml实例
以下是shell代码:create_xml.sh复制代码 代码如下:#! /bin/bash#author: dengzhaoqun#date: 201202/14outfile=outtabs=0put(){echo "<"${*}">" >> $outfile}put_head(){put "?"${1}"?"}out_tabs(){tmp=0tabsstr=""while [ $tmp -lt $((tabs)...