我有这个.xml文件: <docs>
<doc>
Some text
</doc>
<doc>
here some
</doc>
<doc>
text here
</doc>
</docs>
我试图用csplit可为了只拿到文本部分。这是我想出的。 $ csplit docs.xml '%^<docs>%1' '/^<\/doc/1' '{*}'
我有以下阵列获取对象的数组的索引: var = array[
{"id" : "aa", "description" : "some description"},
{"id" : "bb", "description" : "some more description"},
{"id" : "cc", "description" : "a lot of d