I have an xml file like
<changeSet id="1" author="naveen" dbms="oracle">
<sqlFile path="/appl/Liquibase/sql/IntialVersion.sql" />
</changeSet>
<changeSet id="2" author="naveen" dbms="oracle">
<sqlFile path="/appl/Liquibase/sql/FirstRev.sql" />
</changeSet>
<changeSet id="3" author="naveen" dbms="oracle">
<sqlFile path="/appl/Liquibase/sql/23_12_2011.sql" />
</changeSet>
I want to add a new changeSet tag like below using shell scripting
<changeSet id="4" author="naveen" dbms="oracle">
<sqlFile path="/appl/Liquibase/sql/24_12_2011.sql" />
</changeSet>
Is there any simple way to do this in shell scripting? I have to change id and sql file name also in the tag.
echo '<newtag />' >> file.xml. It won't be valid, but it's a new tag in the xml file...