09-20-2011
[Solved] Extracting data from a determined file
Hi guys,
How you doing?
Need some help with this .I got a file with this kind of information
SURVIVABLE PROCESSORS
Name Type IP Address Reg Act Translations Net
Updated Rgn
Gateway001 LSP 10.10.255.1 n 1
I need to extract the Ip and send to it to another file to get something like this.
10.10.255.1
10.10.255.2
10.10.255.3
etc
Bare in mind that the file i am manipulating can be different one time from another so i need to make the script work indepently of the lines of the files.
Any ideas on how to resolve this?
Thanks for your time I WOULD really aprreciated if nyone can help me,,
REX
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello
Anybody any idea how to extract data from an AFP file using UNIX commands?
I could make the AFP to PDF or if there is any other to change it to to make the extraction simplar. I'm open to ideas.
Cheers (4 Replies)
Discussion started by: Dolph
4 Replies
2. Shell Programming and Scripting
Hi ppl out there...
Can anyone help me with the shell script to extract data from an xml file.
My xml file looks like :
- <servlet>
<servlet-name>FrontServlet</servlet-name>
<display-name>FrontServlet</display-name>
... (3 Replies)
Discussion started by: nishana
3 Replies
3. UNIX for Dummies Questions & Answers
Hi
I need to calculate the number of occurrences of a item in a number of files using Perl.
The item appears continually throughout the files but in each case I only want to calculate it in certain blocks of the file.
Example - Calculalte the number of occurrences of a 'pass' in a block of... (0 Replies)
Discussion started by: oop
0 Replies
4. Shell Programming and Scripting
I have a .csv file
equipment,bandtype
abc,aws
def,mmds
ghi,umts
jkl,mmds
I can get the equipment from `hostname`.
In my script i want to check what is the hostname. then see if it exists in the.csv file. if it does then i want to store the second parameter(bandtype) for the corresponding... (3 Replies)
Discussion started by: lassimanji
3 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Please can someone assist.
I have the following xml file:
<?xml version="1.0" encoding="utf-8" ?>
- <PUTTRIGGER xmlns:xsd="http://www.test.org/2001/XMLSchema" xmlns:xsi="http://www.test.org/2001/XMLSchema-instance" APPLICATIONNUMBER="0501160" ACCOUNTNAME="Mrs S Test"... (15 Replies)
Discussion started by: Dolph
15 Replies
6. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
7. UNIX for Dummies Questions & Answers
I am having a file, around 500 lines. which contains one letter words, two letters words,...and so on(up to 15 letter words and words are not seprated by line). I need to compare all 1 letter words with 3,4,5 and 6 letters word, all 2 letters words with 2,3,4 and 5 letters words and all 3 letters... (3 Replies)
Discussion started by: akhay_ms
3 Replies
8. Shell Programming and Scripting
Hello,
This is my first post in here, so excuse me if I sound too noob here!
I need to extract the path "/apps/mp/installedApps/V61/HRO/hrms_01698_A_qa.ear" from the below xml extract. The path will always appear with the key "binariesURL"
<deployedObject... (6 Replies)
Discussion started by: abhishek2386
6 Replies
9. UNIX for Dummies Questions & Answers
I am trying to compare the data in lines 3 & 5 to see if they match up to the '-S570' (see first code set, all proprietary information has been removed from code set)
spawn telnet
Trying ...
Connected to CA-LOS1234-ASE-S570.cl .
Escape character is '^]'.
CA-LOS1234-ASE-S570
Username: ... (1 Reply)
Discussion started by: slipshft
1 Replies
10. Shell Programming and Scripting
Hi all,
I want to extract blocks of data from a file depending on the contents of that block.
The input file(table) has several blocks each starting with 'gene' in the first column. I want to extract only those blocks which do not have the expression '_T02' in the second column.
Input file ... (3 Replies)
Discussion started by: newbie83
3 Replies
LEARN ABOUT SUSE
net::xmpp::stanza
Net::XMPP::Stanza(3) User Contributed Perl Documentation Net::XMPP::Stanza(3)
NAME
Net::XMPP::Stanza - XMPP Stanza Module
SYNOPSIS
Net::XMPP::Stanza is a private package that serves as a basis for all
XMPP stanzas generated by Net::XMPP.
DESCRIPTION
This module is not meant to be used directly. You should be using
either Net::XMPP::IQ, Net::XMPP::Message, Net::XMPP::Presence, or
another package that inherits from Net::XMPP::Stanza.
That said, this is where all of the namespaced methods are documented.
The current supported namespaces are:
jabber:iq:auth
jabber:iq:privacy
jabber:iq:register
jabber:iq:roster
urn:ietf:params:xml:ns:xmpp-bind
urn:ietf:params:xml:ns:xmpp-session
For more information on what these namespaces are for, visit
http://www.jabber.org and browse the Jabber Programmers Guide.
The following tables can be read as follows:
ny:private:ns
Name Type Get Set Remove Defined Add
========================== ======= === === ====== ======= ===
Foo scalar X X X X
Bar child X
Bars child X
Test master X X
Withing the my:private:ns namespace, there exists the functions:
GetFoo(), SetFoo(), RemoveFoo(), DefinedFoo()
AddBar()
GetBars(), DefinedBars()
GetTest(), SetMaster()
Hopefully it should be obvious how this all works. If not feel free to
contact me and I'll work on adding more documentation.
jabber:iq:auth
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Digest scalar X X X X
Hash scalar X X X X
Password scalar X X X X
Resource scalar X X X X
Sequence scalar X X X X
Token scalar X X X X
Username scalar X X X X
Auth master X X
jabber:iq:privacy
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Active scalar X X X X
Default scalar X X X X
List child X
Lists child X X X
Privacy master X X
jabber:iq:privacy - item objects
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Action scalar X X X X
IQ flag X X X X
Message flag X X X X
Order scalar X X X X
PresenceIn flag X X X X
PresenceOut flag X X X X
Type scalar X X X X
Value scalar X X X X
Item master X X
jabber:iq:privacy - list objects
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Name scalar X X X X
Item child X
Items child X X X
List master X X
jabber:iq:register
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Address scalar X X X X
City scalar X X X X
Date scalar X X X X
Email scalar X X X X
First scalar X X X X
Instructions scalar X X X X
Key scalar X X X X
Last scalar X X X X
Misc scalar X X X X
Name scalar X X X X
Nick scalar X X X X
Password scalar X X X X
Phone scalar X X X X
Registered flag X X X X
Remove flag X X X X
State scalar X X X X
Text scalar X X X X
URL scalar X X X X
Username scalar X X X X
Zip scalar X X X X
Register master X X
jabber:iq:roster
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Item child X
Items child X
Roster master X X
jabber:iq:roster - item objects
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Ask scalar X X X X
Group array X X X X
JID jid X X X X
Name scalar X X X X
Subscription scalar X X X X
Item master X X
urn:ietf:params:xml:ns:xmpp-bind
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
JID jid X X X X
Resource scalar X X X X
Bind master X X
urn:ietf:params:xml:ns:xmpp-session
Name Type Get Set Remove Defined Add
========================== ========= === === ====== ======= ===
Session master X X
AUTHOR
Ryan Eatmon
COPYRIGHT
This module is free software, you can redistribute it and/or modify it under the LGPL.
perl v5.12.1 2010-07-05 Net::XMPP::Stanza(3)