I wish to grep for the first instance of <listen-address> value between the first <server></server> tag in an xml file.
Sample xml:
Desired Result: myadminhost
If<listen-address></listen-address> is blank or not present in the first <server></server> tag then the desired result should be the hostname of the server excuting the script.
I have an xml file that generally looks like this:
"<row><dnorpattern>02788920</dnorpattern><description/></row><row><dnorpattern>\+
44146322XXXX</dnorpattern><description/></row><row><dnorpattern>40XXX</dnorpattern><description/></row><row><dnorpattern>11</dn... (4 Replies)
continuing from my previous post, whose link is given below as a reference
https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569
consider there is create table commands in a file for eg:
CREATE TABLE `Blahblahblah` (
`id` int(11) NOT NULL... (2 Replies)
i need to extract the string between two tags,
input file is
<PersonInfoShipTo AddressID="446311709" AddressLine1="" AddressLine2="" AddressLine3="" AddressLine4="" AddressLine5="" AddressLine6="" AlternateEmailID="" Beeper="" City="" Company="" Country="" DayFaxNo="" DayPhone="" Department=""... (5 Replies)
Hello everybody,
I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings..
The original XML files contain the source code for... (12 Replies)
Sorry for the long/weird title but I'm stuck on a problem I have. I have this XML file:
</member>
<member>
<name>TransactionID</name>
<value><string>123456789123456</string></value>
</member>
<member>
<name>Number</name>
... (9 Replies)
Discussion started by: cozzin
9 Replies
LEARN ABOUT OPENDARWIN
nidomain
NIDOMAIN(8) System Manager's Manual NIDOMAIN(8)NAME
nidomain - NetInfo domain utility
SYNOPSIS
nidomain -l [ hostname ]
nidomain -m tag
nidomain -d tag
nidomain -c tag master/remotetag
DESCRIPTION
The nidomain utility is an interface to nibindd(8), to which it sends all of its requests about the domains served on a given machine. It
also can be used to create and destroy NetInfo databases.
The nidomain utility will allow one to create multiple levels of NetInfo hierarchy, but it is not a particularly easy way to do it. One
should use the NetInfo Manager application for setting up multilevel hierarchies.
OPTIONS -l [ hostname ]
List the domains by tag served on the given hostname. If hostname is unspecified, the local host is used.
-m tag Create a new NetInfo database and server on the local machine for the domain tag of tag.
-d tag Destroy the local NetInfo database and server associated with the domain tagged tag. If the database was associated with a clone,
the machine's ``serves'' property on the master is NOT modified to reflect the fact that the database has been deleted.
-c tag master/remotetag
Creates a clone NetInfo database with the domain tagged tag. The database is cloned from the machine master and remote tag remote-
tag. The machine's ``serves'' property should be set up prior to running this command to contain the entry "./tag".
SEE ALSO nibindd(8)Apple Computer, Inc. March 23, 1989 NIDOMAIN(8)