Menu

[a72281]: / examples / ed-insert  Maximize  Restore  History

Download this file

4 lines (4 with data), 171 Bytes

#!/bin/sh
./xmlstarlet ed -i '/xml/table/rec[@id=1]' -t attr -n first -v yes xml/table.xml
# insert empty element
./xmlstarlet ed -i '/foo' -t elem -n first xml/entity.xml
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.