I'm trying to get some values from an xmlfile and want be able to process them. I'm using xmllint(v20901 on debian jessie) and this program directly outputs all results concatenated right after each other. I did not find a solution in the man page to get a different format or some output separator.
Here's the data:
XML-INPUT The used command The result Wanted result
So since there is no separator-character at all, the solution is not usable.
I got a workaround, which is not that efficient, but well it works:
Maybe you have some further tip. I absolutely want to stay with xmllint.
Hello all
when I do simple grep on file im getting the results of "filename : stringResult "
is there any way to present also the line number in the file ? (1 Reply)
Here is my question,
volume of records processed : 5M ( approx )
Its basically very simple operation that am trying to do and I had achieved the output that am interested. What am looking for really is to improve the performance, an optimized way to do that.
with respect to iconv, am... (3 Replies)
I am looking for a free whois lookup tool or some "scripting help" that will give uniform result for whois lookup from the linux command line.
Currently:
whois of a .co.nz domain results nameserver as follows.
ns_name_01: ns1.domain.co.nz
ns_name_02: ns2.domain.co.nz
While that of a .net... (5 Replies)
Hey everyone
I have a file 'agenda' which contains:
Object Day Month Year
Birthday 09 02 2012
i want to extract from a script the line which contains the day the user typed.
for example if he type 09 the line is showed using... (4 Replies)
Hi All,
Need help to parse the xml file in shell script using xmllint. Below is the sample xml file.
<CARS>
<AUDI>
<Speed="45"/>
<speed="55"/>
<speed="75"/>
<speed="95"/>
</AUDI>
<BMW>
<Speed="30"/>
<speed="75"/>
<speed="120"/>
<speed="135"/>
</BMW>... (6 Replies)
I have a line like below
a,blank,12,24
I want to add (12+24) at the end of the line or any where in the same line line
output:
a,blank,12,24,36 (2 Replies)
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Have like 50 xml files in a folder. They all have a Node named <Number>.How to display the values of <Number> with the count and filename in the folder. I am using Mac . (7 Replies)
Hello,
I am coding a script to check mysql databases using bash script, I would like to check if the status of a table is not 'OK', will return the table name and do some more actions:
check.log
table1 OK
table2 Some error here
table3 ... (5 Replies)