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:
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
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,
... (12 Replies)
Discussion started by: s1s2s3s4
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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.
I want to... (5 Replies)
Discussion started by: erhanasd
6. Shell Programming and Scripting
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
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
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
... (2 Replies)
Discussion started by: dcfivesixfive
9. Post Here to Contact Site Administrators and Moderators
Can you change my userid from "jdmower" to "jdmowrer". I dropped an r when registering.
Jim (0 Replies)
Discussion started by: jdmowrer
10. Shell Programming and Scripting
I have a file like
and wanna convert this as
please help me to create a script for this
thanks in advance
John (4 Replies)
Discussion started by: johnsonpk