10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
For i while i have been using XMLStarlet to convert several XML files to CSV files. So far this always went fine.
Today however i got a new XML format however but i cannot find out how to get the data i need.
Below is part of the code where it shows the different format. What... (10 Replies)
Discussion started by: SDohmen
10 Replies
2. UNIX and Linux Applications
Hello,
Does anyone know of a way to convert an .xml file (ONIX) to something more workable, like a .csv (or even .xls) file? Ideally something on the command line would be ideal, but not absolutely necessary. I would be dealing with .xml files of 125 MB+.
I am using XQuartz in El Capitan.
... (17 Replies)
Discussion started by: palex
17 Replies
3. Shell Programming and Scripting
I want to pharse below Xml Using Shell Scripting .
Thanks in Advance
<md>
<neid>
<neun>1523</neun>
<nedn>XXX1212</nedn>
<nesw>fffff12515</nesw>
</neid>
<mi>
<mts>20141128001500</mts>
<gp>550</gp>
<mt>pmct1</mt>
<mt>pmNo2</mt>
<mt>pmNo3S</mt>
<mv>
<moid>Ma=1,Rn=1,Ul=311C</moid>... (6 Replies)
Discussion started by: pareshkp
6 Replies
4. Shell Programming and Scripting
I am in need of converting billions of XML into csv file to load data to DB, i have found the below code in perl but not sure why it's not working properly.
CODE:
#!/usr/bin/perl
# Script to illustrate how to parse a simple XML file
# and pick out all the values for a specific element, in... (1 Reply)
Discussion started by: rspwilliam
1 Replies
5. Shell Programming and Scripting
I need to convert below xml code to csv. I searched other posts as well but this post (_https://www.unix.com/shell-programming-scripting/174417-extract-parse-xml-data-statistic-value-csv.html) gives "sed command garbled" error. As of now I have written a long script to do it, but can it be done with... (7 Replies)
Discussion started by: dineshydv
7 Replies
6. Shell Programming and Scripting
Hi ,
Please any one to help on ,extract this xml code into csv columns list.
<SOURCEFIELD BUSINESSNAME ="" DATATYPE ="date" DESCRIPTION ="" FIELDNUMBER ="1"
FIELDPROPERTY ="0" FIELDTYPE ="ELEMITEM" HIDDEN ="NO" KEYTYPE ="NOT A KEY" LENGTH ="19"
LEVEL ="0" NAME ="BUSINESS_DATE"... (4 Replies)
Discussion started by: mohan705
4 Replies
7. Shell Programming and Scripting
Hi,
I want to write a perl script. Which should accept the xml file, one xsl file and the loaction. The perl script should process the xml file using the xsl file and puts the out put in specified location.
For example:
My.perl is perls cript.
my.xml
is like this
<?xml version="1.0"... (2 Replies)
Discussion started by: siba.s.nayak
2 Replies
8. Shell Programming and Scripting
Hi,
i am really fresh with shell scripting and programming,
i have an issue i am not able to solve to populate data on my server for Cisco IP phones.
I have CSV file within the following format:
;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;... (9 Replies)
Discussion started by: angel2008
9 Replies
9. Shell Programming and Scripting
Iam pretty new to UNIX and would like to convert a CSV to an XML file using AWK scripts. Can anybody suggest a solution? My CSV file looks something like this :
Serial No Growth% Annual % Commission % Unemployed %
1 35% 29% 59% 42%
2 61% ... (15 Replies)
Discussion started by: pjanakir
15 Replies
10. Shell Programming and Scripting
Apologies if this has already been covered in this site somewhere, I did try looking but without any success. I am new to the whole XML thing, very late starter, and have a requirement to convert an XML fiule to a CSV fomat. I am crrently working on a Solaris OS. Does anyone have any suggestions,... (2 Replies)
Discussion started by: rossingi_33
2 Replies
ATF-REPORT(1) BSD General Commands Manual ATF-REPORT(1)
NAME
atf-report -- transforms the output of atf-run to different formats
SYNOPSIS
atf-report [-o fmt1:path1 [.. -o fmtN:pathN]]
atf-report -h
DESCRIPTION
atf-report reads the output of atf-run and transforms it to different formats. Some of these are user-friendly and others are machine-
parseable, which opens a wide range of possibilities to analyze the results of a test suite's execution. See Output formats below for more
details on which these formats are.
In the first synopsis form, atf-report reads the output of atf-run through its standard input and, if no -o options are given, prints a user-
friendly report on its standard output using the 'ticker' format. If -o options are provided (more than one are allowed), they specify the
complete list of reports to generate. They are all generated simultaneously, and for obvious reasons, two reports cannot be written to the
same file. Note that the default output is suppressed when -o is provided.
In the second synopsis form, atf-report will print information about all supported options and their purpose.
The following options are available:
-h Shows a short summary of all available options and their purpose.
-o fmt:path Adds a new output format. fmt is one of the formats described later on in Output formats. path specifies where the report
will be written to. Depending on the chosen format, this may refer to a single file or to a directory. For those formats
that write to a single file, specifying a '-' as the path will redirect the report to the standard output.
Output formats
The following output formats are allowed:
csv A machine-parseable Comma-Separated Values (CSV) file. This file contains the results for all test cases and test programs. Test
cases are logged using the following syntax:
tc, duration, test-program, test-case, result[, reason]
The 'result' field for test cases is always one of 'passed', 'skipped' or 'failed'. The last two are always followed by a reason.
Test programs are logged with the following syntax:
tp, duration, test-program, result[, reason]
In this case, the 'result' can be one of: 'passed', which denotes test programs that ran without any failure; 'failed', which
refers to test programs in which one or more test cases failed; or 'bogus', which mentions those test programs that failed to exe-
cute by some reason. The reason field is only available in the last case.
The time required to execute each test case and test program is also provided. You should not rely on the order of the entries in
the resulting output.
ticker A user-friendly report that shows the progress of the test suite's execution as it operates. This type of report should always be
redirected to a virtual terminal, not a file, as it may use control sequences that will make the output unreadable in regular
files.
xml A report contained in a single XML file. Ideal for later processing with xsltproc(1) to generate nice HTML reports.
EXAMPLES
The most simple way of running a test suite is to pipe the output of atf-run through atf-report without any additional flags. This will use
the default output format, which is suitable to most users:
atf-run | atf-report
In some situations, it may be interesting to get a machine-parseable file aside from the standard report. This can be done as follows:
atf-run | atf-report -o csv:testsuite.csv -o ticker:-
Or if the standard report is not desired, thus achieving completely silent operation: atf-run | atf-report -o csv:testsuite.csv
SEE ALSO
atf-run(1), atf(7)
BSD
December 16, 2011 BSD