Menu

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

Download this file

6 lines (5 with data), 159 Bytes

#!/bin/sh
./xmlstarlet ed \
    -s /xml/table/rec -t elem -n new-field -v new-value \
    -i '$prev' -t attr -n new-attr -v new-attr-value \
    xml/table.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.