10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have xml output in below format...
<AlertsResponse>
<Alert id="11216" name="fgdfg">
<AlertActionLog timestamp="1356521629778" user="admin" detail="Recovery Alert"/>
</Alert>
<Alert id="11215" name="gdfg
<AlertActionLog timestamp="1356430119840" user=""... (12 Replies)
Discussion started by: vivek d r
12 Replies
2. Shell Programming and Scripting
I am trying to parse the XML Google contact file using tools like xmllint and I even dived into the XSL Style Sheets using xsltproc but I get nowhere.
I can not supply any sample file as it contains private data but you can download your own contacts using this script:
#!/bin/sh
# imports... (9 Replies)
Discussion started by: ripat
9 Replies
3. Shell Programming and Scripting
Good day all.
I have the following entries of data in a file in a column, however, I need this data written on a single line with several parameters in a different order.
Current format:
Treatment
,parmeter1=value
,parmeter2=value
,parmeter3=value
,parmeter4=value... (7 Replies)
Discussion started by: BRH
7 Replies
4. Shell Programming and Scripting
My XML structure looks like:
<?xml version="1.0" encoding="UTF-8"?>
<SearchRepository>
<SearchItems>
<SearchItem>
...
</SearchItem>
<SearchItem>
...
... (1 Reply)
Discussion started by: jasonjustice
1 Replies
5. Shell Programming and Scripting
I have a large xml file as shown below:
<input>
<blah>
<blah>
<atr="blah blah value = "">
<blah>
<blah>
</input>
..2nd chunk...
..3rd chunk...
...4th chunk...
All lines between <input> and </input> is one 'order' and this 'order' is repeated... (14 Replies)
Discussion started by: shekhar2010us
14 Replies
6. Shell Programming and Scripting
HI,
i have input files.it have comma separated records but with some leading and trailing spaces.names of input files,(you may use any dummy comma delimited input records)
ls /u01
eG_20100805_0000504_110208 eG_20100805_0000505_121154 eG_20100805_0000506_130233
i need single output... (1 Reply)
Discussion started by: malikshahid85
1 Replies
7. Shell Programming and Scripting
Hi All,
I have an xml file with the below format.
<a>111</a><b>222</b><c>333<c><d><e>123</e><f>234</f><d><e>456</e><f>789</f>
output needed is
111,222,333,123,234
111,222,333,456,789
nawk 'BEGIN{FS="<|>"}
{print a,b,c,e,f
a=""
... (7 Replies)
Discussion started by: natalie23
7 Replies
8. Shell Programming and Scripting
Hi ,
I have an xml format as shown below:
<Info>
<last name="sean" first name="john"/>
<period="5" time="11"/>
<test value="1",test2 value="2",test3 value="3",test4 value="5">
<old>
<value1>1</value1>
<value2>2</value2>
</old>
<new>
<value1>4</value1>
<value2>3</value2>
</new>... (1 Reply)
Discussion started by: natalie23
1 Replies
9. Shell Programming and Scripting
guys, i need help
the file
$ cat file1
1 2 3 4 5 6 7 8 9
my script
$ cat nawk1
#!/bin/sh
echo "from column? :\c"
read c1
echo "until column? :\c"
read c2
cat file1 | nawk `{ print $c1, $c2 }`
result
$ ./nawk1 (3 Replies)
Discussion started by: ajiep
3 Replies
10. Shell Programming and Scripting
As per another thread - https://www.unix.com/shell-programming-scripting/81027-how-can-i-parse-xml-file-2.html
I am using the following to extract the Subaccid and RecAccTotal from the xm file below
awk -v v=SubaccId -F'' '$2==v{s=$3;getline;a+=$3}END {for (i in a)print v,i,a}' file
Can... (6 Replies)
Discussion started by: frustrated1
6 Replies