Search Results

Search: Posts Made By: mariakumar3
7,748
Posted By mariakumar3
It is not appending any thing to the file. Here...
It is not appending any thing to the file.
Here is my code:

touch optFile

a1="X"

echo $a1


cat $A2 | while read line
do
if [ "$line" = ".*\<tag name\=\"$a1\".*" ] ; then

...
7,748
Posted By mariakumar3
When I print $line it showing as x/y/z it not...
When I print $line it showing as x/y/z it not showing </tag>. We have two files ,need to append this details from one file to another.
7,748
Posted By mariakumar3
Thanks for your solution. I will verify it. ...
Thanks for your solution. I will verify it.

---------- Post updated at 01:16 PM ---------- Previous update was at 01:04 PM ----------

cat xmlFile | while read line # read each line of...
7,748
Posted By mariakumar3
Can you explain Plz..
Can you explain Plz..
7,748
Posted By mariakumar3
I have a string like x,y,z and xml file contains ...
I have a string like x,y,z and xml file contains
<tag name="x" version="1.0">
</tag>
<tag name="y" version="1.0">
</tag>
<tag name="z" version="1.0">
</tag>

If I pass x then 'x' application...
7,748
Posted By mariakumar3
how to find the end tag in xml file.
Hi,

I am newbie. I wanted to know how to find the end tag in shell where I have multiple tags in xml like

<tag name="x" version="1.0">
</tag>
<tag name="x" version="1.0">
</tag>
<tag...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy