Hi All,
Find the following code:
<Universal>D38x82j1JJ
</Universal>
I want to retrieve the value of <Universal> tag as below:
Please help me.
Hi All,
Find the following code:
<Universal>D38x82j1JJ
</Universal>
I want to retrieve the value of <Universal> tag as below:
Please help me.
try:
awk '$1==s{print $2}' RS=\< FS=\> s=Universal infile
If the code is :
<Universal>DKDKJSKJW
</Universal>
<Universal>KDJEIDKDKD
</Universal>
<Universal>KELMSDNXN
</Universal>
then I need an output as
Help!!!!
Try:
awk '$1==s{sub("\n$",x); print $2}' RS=\< FS=\> s=Universal infile