Hi,
Am new to scripting. :)
Am trying to figure out whether can i use bash scripting to parse an xml file.
Parsing is not just pulling out information according to the pattern but its more of a generic parsing. I should identify the xml hierarchy and pull out information accordingly. It's not a... (2 Replies)
Hello,
I'm a starting shell scripter and no Perl knowledge. I've trying to do this for a while:
I want to parse an XML file and get certain data out of it and write that data into a CSV file, all this using Shell Scripting (in Bash). Or Perl without any XML Parser/Interpreter (if possible).
... (1 Reply)
Below is a XML I have...
<?xml version="1.0" encoding="UTF-8" ?>
<component
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:XXXXX-www-Install-Manifest manifest.xsd"
xmlns="urn:qqqqq-Install-Manifest"
name="OM"
... (1 Reply)
I need to create a shell script that can parse the below XML and send a string back adding all XML values. The text which's not in angular braces are to be printed.
Sample code:
<RequestBillsRsp... (9 Replies)
I have a xml file like this
<bul:collectionStrategy name="strategy1">
<bul:collectionTemplateGroup name="15min group"/>
<bul:collectionTemplateGroup name="hourly group"/>
</bul:collectionStrategy>
<bul:CollectionTemplateGroup name="hourly group" >
... (2 Replies)
Hi folks,
Need some help with XML to text file parsing , the following is the content of the XML File.
<xn:SubNetwork id="SNJNPRZDCR0R03">
<xn:MeContext id="PRSJU0005">
<xn:VsDataContainer id="PRSJU0005">
<xn:attributes>
... (6 Replies)
Hi,
I want to parse an XML File using Shell Script preferably by using awk command,
I/P file is :
<gn:ExternalGsmCell id="016P3A">
<gn:attributes>
<gn:mnc>410</gn:mnc>
<gn:mcc>310</gn:mcc>
<gn:lac>8016</gn:lac>
... (2 Replies)
HI Guys,
I have to parse below xml file :-
<xn:SubNetwork id="ONRM_ROOT_MO_R">
<xn:MeContext id="LP101">
<xn:ManagedElement id="1">
<xn:VsDataContainer id="1">
<xn:attributes>
... (8 Replies)
Hi ,
I have data as below in a text file
{
'AAA' => {
'A1' => 'a1 comment',
'A2' => 'a2 comment'
},
'BBB' => {
'B1' => 'b1 comment'
},
'CCC' => {
'C1' => 'c1 comment',
'C2' => 'c2 comment',
'C3' => 'c3 comment'
'C4' => 'c4... (2 Replies)
Discussion started by: vivek d r
2 Replies
LEARN ABOUT CENTOS
t1asm
T1ASM(1) General Commands Manual T1ASM(1)NAME
t1asm - assemble PostScript Type 1 font
SYNOPSIS
t1asm [-a|-b] [-l length] [input [output]]
DESCRIPTION
t1asm assembles Adobe Type 1 font programs into either PFA (hexadecimal) or PFB (binary) formats from a human-readable form. If the file
output is not specified output goes to the standard output. If the file input is not specified input comes from the standard input.
t1asm tokenizes the charstring data and performs eexec and charstring encryption as specified in the ``black book,'' Adobe Type 1 Font For-
mat.
The input must have a line of the form
/-|{string currentfile exch readstring pop}executeonly def
which defines the command, in this case `-|', that is to start charstring data. It is an error not to define such a command. Another common
name for this command is `RD'.
After the start of the Subrs array in the input, all open braces `{' not in a comment begin a charstring. Such a charstring is terminated
by the next non-comment close brace `}'. Within such a charstring, only comments, integers, and valid charstring commands are allowed.
Valid charstring command names can be found in Adobe Type 1 Font Format and other documents describing the newer Type 2 opcodes. The format
within a charstring is unimportant as long as integers and commands are separated by at least a one whitespace (space, tab, newline) char-
acter. Note that within charstrings, comments are discarded because they cannot be encoded.
OPTIONS --pfa, -a
Output in PFA (ASCII) format.
--pfb, -b
Output in PFB (binary) format. This is the default.
--block-length=num, -l num
PFB only: Set the maximum output block length to num. The default length is as large as memory allows.
--line-length=num, -l num
PFA only: Set the maximum length of encrypted lines in the output to num. (These are the lines consisting wholly of hexadecimal dig-
its.) The default is 64.
EXAMPLES
% t1asm Utopia-Regular.raw > Utopia-Regular.pfb
% t1asm -a Utopia-Regular.raw > Utopia-Regular.pfa
SEE ALSO t1disasm(1), t1ascii(1), t1binary(1), t1unmac(1), t1mac(1)
Adobe Type 1 Font Format is available free from Adobe as a PDF file. http://partners.adobe.com/asn/developer/PDFS/TN/T1_SPEC.PDF
The Type 2 Charstring Format, also available from Adobe as a PDF file, describes the newer Type 2 operators, which are also used in some
multiple-master Type 1 fonts like Adobe Jenson and Kepler. http://partners.adobe.com/asn/developer/PDFS/TN/5177.Type2.pdf
AUTHORS
Lee Hetherington (ilh@lcs.mit.edu)
Eddie Kohler (ekohler@gmail.com)
Version 1.37T1ASM(1)