shell解析xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<properties port="10000" URI="tcp://localhost" />
怎么把port的值解析出来
[解决办法]
sed '/port=/!d; s/.*port="\([0-9]\+\)".*/\1/' urfile