Nishi Bhonsle wrote:
Hi:

How do I look for the string <filemap_generic> in the following file so that
i can insert something between the tags
<filemap_generic>
insert some bla text here
</filemap_generic>
in the following file?

------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

   <!DOCTYPE filemap>
     <filemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:noNamespaceSchemaLocation="filemap.xsd">

<filemap_generic>

</filemap_generic>
</filemap>

Hello Nishi,

Hope this helps you...

perl -i.bak -p -e 's#<filemap_generic>#<filemap_generic>insert some bla text here#i' filename

--
Prabu.M.A
When I was born I was so surprised
        I didnt talk for a period and half
                                 -Gracie Allen


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to