I have a text file in HPUX and I have to insert some xml at a specific location in the file, for example, I have to insert some text after this
<Table name="DATA" keys="CONTEXT_ID,USERNAME">
...my text here
in linux i have done this using 'sed' but the same command gives error in HPUX, unable to parse...
please help
In Linux, I have used sed like this
sed '\|<table name="MANAGED_USER" keys="CONTEXT_ID,USERNAME">| a \ my text here' file.xml >> file1.xml