Sponsored Content
Top Forums Shell Programming and Scripting Extract values from an XML File Post 302717893 by prvnrk on Thursday 18th of October 2012 05:10:22 PM
Old 10-18-2012
Extract values from an XML File

Hi,

I need to capture all the attributes with delete next to it. The source XML file is attached.

The output should contain something like this below:

Attributes = legacyExchangeDN
Action = Delete
Username = Hero Joker
Loginid = joker09
OU = cn=Hero.Joker.ext,ou=LCITY,ou=vision,ou=ABC LCITY,ou=roaming,ou=interactive,ou=users,ou=standard,ou=business,dc=national,dc=core,dc=xyz,dc=co,dc =jp
Exchange version = 2010



Please advise,
Thanks much,
prvnrk
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to extract text from xml file

I have some xml files that got created by exporting a website from RedDot. I would like to extract the cost, course number, description, and meeting information. <?xml version="1.0" encoding="UTF-16" standalone="yes" ?> - <PAG PAG0="3AE6FCFD86D34896A82FCA3B7B76FF90" PAG3="525312"... (3 Replies)
Discussion started by: chrisf
3 Replies

2. Shell Programming and Scripting

extract a number within an xml file

Hi Everyone, I have an sh script that I am working on and I have run into a little snag that I am hoping someone here can assist me with. I am using wget to retrieve an xml file from thetvdb.com. This part works ok but what I need to be able to do is extract the series ID # from the xml and put... (10 Replies)
Discussion started by: tret
10 Replies

3. Shell Programming and Scripting

Extract XML Element Values

I have a rather large file with XML-style content. Each line contains one full XML entry. For example: 1:<Message><DNIS>1234</DNIS><UCID>3456</UCID><TransferGroup>XYZXYZ</TransferGroup></Message> 2:<Message><DNIS>9999</DNIS><UCID>2584</UCID><TransferGroup>ABCABC</TransferGroup></Message>... (1 Reply)
Discussion started by: sharpi03
1 Replies

4. Shell Programming and Scripting

extract a pattern from a xml file

Hello All, I want to write a shell script for extracting a content from a xml file the xml file looks like this: <Variable name="moreAxleInfo"> <type> <Table> <type> <NamedType> <type> <TypeRef... (11 Replies)
Discussion started by: suvendu4urs
11 Replies

5. Shell Programming and Scripting

Extract data from XML file

Hi , I have input file as XML. following are input data #complex.xml <?xml version="1.0" encoding="UTF-8"?> <TEST_doc xmlns="http://www.w3.org/2001/XMLSchema-instance"> <ENTRY uid="123456"> <protein> <name>PROT001</name> <organism>Human</organism> ... (1 Reply)
Discussion started by: mohan sharma
1 Replies

6. Shell Programming and Scripting

Extract a particular xml only from an xml jar file

Hi..need help on how to extract a particular xml file only from an xml jar file... thanks! (2 Replies)
Discussion started by: qwerty000
2 Replies

7. Shell Programming and Scripting

Comparing delta values of one xml file in other xml file

Hi All, I have two xml files. One is having below input <NameValuePair> <name>Daemon</name> <value>tcp:7474</value> </NameValuePair> <NameValuePair> <name>Network</name> <value></value> </NameValuePair> ... (2 Replies)
Discussion started by: sharsour
2 Replies

8. Shell Programming and Scripting

How to extract xml attribute values using awk inline.?

I am trying to extract specific XML attribute values for search pattern <factories.*baseQueueName' from resources.xml. my scripts works ok,, but to extract 3 values this code does echo $line three times, it could be 'n' times. How can I use awk to extract matching pattern values in-line or... (11 Replies)
Discussion started by: kchinnam
11 Replies

9. Shell Programming and Scripting

Extract a value from an xml file

I have this XML file format and all in one line: Fri Dec 23 00:14:52 2016 Logged Message:689|<?xml version="1.0" encoding="UTF-8"?><PORT_RESPONSE><HEADER><ORIGINATOR>XMG</ORIGINATOR><DESTINAT... (16 Replies)
Discussion started by: mrn6430
16 Replies

10. Shell Programming and Scripting

Extract values from xml file script

Hi, please help on this. I want extract values of xml file structure and print in determined way. <ProjectName> --> only appears once <StructList> --> is the top node <Struct> node --> could be more than 1 NameID, STX, STY, PRX, PRY --> appears only 1 time within each <Struct> node... (10 Replies)
Discussion started by: Ophiuchus
10 Replies
nl-qdisc(8)						      System Manager's Manual						       nl-qdisc(8)

NAME
nl-qdisc-{add|list|delete} - Manage queueing disciplines SYNOPSIS
nl-qdisc-add --dev dev --parent id [OPTIONS] qdisc-type [QDISC] nl-qdisc-delete [ --interactive ] [OPTIONS] nl-qdisc-list [OPTIONS] DESCRIPTION
The nl-qdisc tools allow to manage and configure queueing disciplines (qdiscs) in the kernel. OPTIONS
-h or --help Print help text to console and exit. -v or --version Print versioning information to console and exit. -q or --quiet Do not print informal notifications about actions taken to the console. By default a short description of each qdisc added/update/deleted will be printed to the console. This option disables this behaviour. -d or --dev=DEV Network device the qdisc is attached to. -p or --parent=ID Identifier of the parent qdisc/class this qdisc is attached to. The identifier can be specified as classid, name or one of the spe- cial values "root" or "ingress". -i or --id=ID Identifier of qdisc. It can be specified as classid or name. nl-qdisc-add Options --update Update qdisc if it already exists, otherwise attempting to add a qdisc which already exists will result in an error. This does not include changing the type of the qdisc, use --replace if you wish to do so. --replace Replace or update qdisc if it already exists. Same behaviour as --update but will completely replace the qdisc if it exists already. --update-only Update an existing qdisc but do not create it if it does not exist. --replace-only Update or replace an existing qdisc but do not create it if it does exist. nl-qdisc-delete Options --interactive The interactive mode requires confirmation by the user for each qdisc deleted. It will print a prompt for each qdisc matching the provided filter and requires the user to answer 'y'es or 'n'o. --yes Make the default answer for interactive prompts be 'y'es. This option is also required to delete all qdiscs on all network devices. -k or --kind=TYPE Only delete qdiscs of this type. nl-qdisc-list Options --details Show detailed information for each qdisc listed. --stats Show statistics information for each qdisc listed. This option will also turn on detailed information automatically. -r or --recursive List all TC objects recurisvely attached to all qdiscs matching the filter. -k or --kind=TYPE Only list qdiscs of this type. USAGE
Add a HTB root qdisc with id "5:": nl-qdisc-add --dev eth0 --parent root --id 5: htb List all qdiscs on eth0 and print statistical data: nl-qdisc-list --stats --dev eth0 Delete the qdisc "5:": nl-qdisc-delete --id 5: SEE ALSO
nl-classid-lookup(8) AUTHOR
Thomas Graf is the original author and current maintainer of libnl and libnl tools. Many people have contributed to it since. libnl 21 October 2010 nl-qdisc(8)
All times are GMT -4. The time now is 06:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy