這裏是shell腳本的新手。例如,我如何閱讀以下XML代碼中的每個名稱並將所有名稱放在列中?從xml讀到bash
<rates>
<currency>
<name>Australian dollar</name>
<rate>2.34</rate>
<amount>1</amount>
</currency>
<currency>
<name>GB Pounds</name>
<rate>4.12</rate>
<amount>1</amount>
</currency>
<currency>
<name>Euro</name>
<rate>3.45</rate>
<amount>1</amount>
</currency>
<currency>
<name>USA dollar</name>
<rate>2.55</rate>
<amount>1</amount>
</currency>
<currency>
<name>Russian ruble</name>
<rate>7.72</rate>
<amount>100</amount>
</currency>
[如何在Bash中解析XML?](http://stackoverflow.com/questions/893585/how-to-parse-xml-in-bash?rq=1) – ToastyMallows