10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a large XML file that I want to parse, and only print one specific value if two values are met.
This is the code so far:
#!/usr/local/bin/python
import xml.etree.ElementTree as ET
tree = ET.parse('onedb-dhcp.xml')
root = tree.getroot()
# This successfully gets all... (1 Reply)
Discussion started by: brianjb
1 Replies
2. UNIX for Beginners Questions & Answers
I have xml file like below, i want change the values at default-value place of each argument name using shell script. like
where argument name= protocol and default-value=tcp,
where argument name =port and default-value= 7223,
where argument name = username and default-value=test,
example
... (12 Replies)
Discussion started by: s1s2s3s4
12 Replies
3. Programming
Hey guys, literally just starting off on python, just making a simple menu based system to read/write files and delete a file to get used to calling functions and working with the file system etc.
For some reason the code won't write to the file I have on my system, not sure what I'm doing wrong.... (3 Replies)
Discussion started by: 3therk1ll
3 Replies
4. Shell Programming and Scripting
Hey all,
I'm very new to shell scripting and would love some help. I have been messing around with KSH at my job, and have been tasked with generating an XML file from multiple CSV files. However, I barely even understand the syntax for for loops! Output should be something along the lines of
... (2 Replies)
Discussion started by: Parrakarry
2 Replies
5. Shell Programming and Scripting
Hello,
I don't have experience in this scripting and I need some help to read a value from an XML file and change it with a random number to use in simulator for different network scenarios.
</Description><sim_comm_rounds>35</sim_comm_rounds><num_clusters>1</num_clusters><Clocking>
I want to... (5 Replies)
Discussion started by: erhanasd
5 Replies
6. Shell Programming and Scripting
Hi,
I am new to UNIX and shell scripting.
I have to create a shell script(ksh) which parses log4j.xml file for a given webservice name and change the corresponding value from INFO to DEBUG or vice-versa.
My log4j.xml looks like:-
<!-- Appender WEBSERVICENAME-->
<appender... (3 Replies)
Discussion started by: sanjeevcseng
3 Replies
7. Programming
Hello,
I am trying to make script to parse the install.rdf files found in firefox xpi extentions to isolate the extention ID so I can name a directory and automate installation of system-wide extension.
I am very facile with the command line, but not with programming languages (esp... (0 Replies)
Discussion started by: Narnie
0 Replies
8. Shell Programming and Scripting
OK so my objective is to create a python program that will parse an XML file(input.xml), then the program will create an mxml(output.mxml) file.
In the program (.py) i need to read between CDATA so that I would get an output the CDATA code in the input.xml
INPUT.XML
<!]>
... (2 Replies)
Discussion started by: dcfivesixfive
2 Replies
9. Post Here to Contact Site Administrators and Moderators
Can you change my userid from "jdmower" to "jdmowrer". I dropped an r when registering.
thanks
Jim (0 Replies)
Discussion started by: jdmowrer
0 Replies
10. Shell Programming and Scripting
Hi All,
I have a file like
john::208:johnson
john::208:mery
john::208:test
admin:*:1:johnson
admin:*:1:test
and wanna convert this as
john::208:johnson,mery,test
admin:*:1:johnson,test
please help me to create a script for this
thanks in advance
John (4 Replies)
Discussion started by: johnsonpk
4 Replies