04-05-2012
What would the output you want actually look like?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am having xml document as below.
<transactionid>
00
</transactionid>
<tracknumber>
0
</tracknumber>
<key>
N/A
</key>
But the data contains leading and trailing spaces between the tags. Please let me know how can i remove these leading and trailing spaces between the tags.... (2 Replies)
Discussion started by: jhmr7
2 Replies
2. Shell Programming and Scripting
i have a file like
<fruits>
<apple>redcolor<\apple>
<bana:rolleyes:na>yellow color and it is<\banana>
</fruits>
i need a text between apple and bannana ans so on....
how to read a text between a tags it multiple tags with differnt names (9 Replies)
Discussion started by: pvr_satya
9 Replies
3. Shell Programming and Scripting
Is there a way to modify Non Null data between <host> and </host> tags to a new value ?- may be using sed/awk?
I tried this sed 's|.*<host>\(?*\)</host>.*|\<host>xxx</host>|' but it is updating the host which has null value - want opposite of this - Thanks in advance for you help!!
For... (2 Replies)
Discussion started by: harry_todd
2 Replies
4. Shell Programming and Scripting
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
Discussion started by: mjavalkar
0 Replies
5. Shell Programming and Scripting
Hi All,
I'm trying to extract data from an xml file but without the codes. I've achieved it but i was wondering if there's a better way to do this.
sample data:
$ cat xmlfile
<code>
<to>tove</to>
<from>jani</from>
<heading>reminder</heading>
<body>dont forget me</body>
</code>
... (4 Replies)
Discussion started by: Irishboy24
4 Replies
6. Shell Programming and Scripting
Hi,
I am new to shell scripting. I need to extract data between repeating tags from an xml file and store the data in an array to process it further.
<ns1:root xmlns:ns1="http://example.com/config">
<ns1:interface>in1</ns1:interface>
<ns1:operation attribute1="true" attribute2="abd"... (2 Replies)
Discussion started by: sailendra
2 Replies
7. UNIX for Advanced & Expert Users
Hi unix Gurus,
I am really new to Unix Scripting. Please help me to create a shell script which reads the xml file and from that i need to fetch a particular information.
For example
<SOURCE BUSINESSNAME ="" DATABASETYPE ="Teradata" DBDNAME ="DWPROD3" DESCRIPTION ="" NAME... (2 Replies)
Discussion started by: SmilePlease
2 Replies
8. Shell Programming and Scripting
Hi All,
I have a requirement to change the data in xml file to required format.
Below is the scenario.
Please find the attached Xml file which contains data that I need to convert..
<ReleaseIndicatorList><ReleaseIndicator>Alternative... (0 Replies)
Discussion started by: Prathyu
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I need help in extracting only the phone numbers between the continuous non empty xml tags in unix. I searched through a lot of forum but i did not get exact result for my query. Please help
Given below is the sample pipe delimited file. I have a lot of tags before and after... (6 Replies)
Discussion started by: zen01234
6 Replies
T1MAC(1) General Commands Manual T1MAC(1)
NAME
t1mac - translate a PFA or PFB PostScript Type 1 font into Macintosh format
SYNOPSIS
t1mac [--macbinary | --applesingle | --appledouble | --binhex | --raw] [--filename name] [input [output]]
DESCRIPTION
t1mac reads a PFA (hexadecimal) or PFB (binary) PostScript Type 1 font file and generates an equivalent Macintosh Type 1 font file. The
output file can be in MacBinary II, AppleSingle, AppleDouble, or BinHex format, or it can be a raw resource fork. The default is MacBinary
II; use an option to choose a different format. If the output file is not specified output goes to the standard output.
WARNING: The output of t1mac is not sufficient to use the font, since Macintoshes can't read raw Type 1 fonts. You will need to create a
font suitcase containing bitmap fonts if you do not have such a suitcase for the font already. t1mac cannot help you do this.
OPTIONS
--raw, -r
Indicates that output should be a raw resource fork.
--macbinary
Indicates that output should be in MacBinary I or II format. This is the default.
--applesingle
Indicates that output should be in AppleSingle format.
--appledouble
Indicates that output should be in AppleDouble format.
--binhex
Indicates that output should be in BinHex 4.0 format.
--filename=name, -n name
Sets the Macintosh filename of the output font to name. The default is to construct the filename from the font's name using estab-
lished Macintosh conventions. This option is not useful when output is a raw resource fork.
SEE ALSO
t1unmac(1), t1ascii(1), t1binary(1), t1asm(1), t1disasm(1)
AUTHORS
Eddie Kohler (ekohler@gmail.com)
Version 1.37 T1MAC(1)