Search Results

Search: Posts Made By: Viswanatheee55
1,054
Posted By Viswanatheee55
Order as per top occurences
Hi I have a file with entries like below

top 5
a 5
b 4
c 3
d 2
e 1
top 5
b 5
d 4
c 3
e 2
a 1
top 5
e 5
d 4
c 3
b 2
a 1
3,809
Posted By Viswanatheee55
Hi Ravinder, Sorry for posting my...
Hi Ravinder,

Sorry for posting my requirement one by one.

awk script for above requirement works fine, Now added few more sub tags added in my xml file like below

<?xml version="1.0"...
3,809
Posted By Viswanatheee55
I got it Ravinder. Thank you so much for your...
I got it Ravinder. Thank you so much for your help

Thanks,
Viswa

---------- Post updated at 06:04 AM ---------- Previous update was at 03:49 AM ----------

Hi Ravinder,

One more...
3,809
Posted By Viswanatheee55
Hi, When I use the above code it shows like...
Hi,

When I use the above code it shows like below

awk -f jobxml.awk WorkOrders.xml

awk: jobxml.awk:1: awk 'BEGIN { FS="[<>]"; OFS=",";s1="\"" }
awk: jobxml.awk:1: ^...
3,809
Posted By Viswanatheee55
Using awk for converting xml to txt
Hi,

I have a xml script, I converted it to .txt with values comma seperated using awk function. But I want the output values should be inside double quotes

My xml script (Workorders.xml) is...
2,550
Posted By Viswanatheee55
Works fine. Thank you so much Viswa
Works fine.

Thank you so much

Viswa
2,550
Posted By Viswanatheee55
All the above commands works fine but it just...
All the above commands works fine but it just print as "down" in the screen, I want to update the value in file "file.xml"

Thanks,
Viswa

---------- Post updated at 12:58 AM ---------- Previous...
2,550
Posted By Viswanatheee55
sed -i "s/Delay/Down/g" filename Above...
sed -i "s/Delay/Down/g" filename

Above replaces all "Delay" to "Down"

I want to apply this under "<name>XXX</name>"

Thanks,
Viswa


Please use code tags as required by forum rules!
2,550
Posted By Viswanatheee55
Update particular tag in a XML file
Below is the content in my XML file

<name>XXX</name>
<eventType>Uptime</eventType>
<eventType>Delay</eventType>
<eventType>Delay</eventType>
<name>YYY</name>
...
Showing results 1 to 9 of 9

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