Hi Everyone.
I want to get all the lines above the word error. Note some records dont have error.
ex
Input Rec # 2384 Client: BGA Rx No: 0735845
Error: (W)Submit Date before Fill Date(SUBMIT-DATE)
I want to have the line which starts with... (16 Replies)
i have this line
my,name,is,john
stored in a file d.sh and i wish to print the line as string..but im getting word by word...have tried this.........
for in $(cat $d.sh);
do
echo $i
done
but this is giving me
my
name
is
john (6 Replies)
Hey all,
Could any one help me ...
I want to search the word and want the line above it.
eg. mytxt.log
My name is Jeevan.
240 is my address.
My name is Jhon.
390 is my address.
--------
i want to search "240" and want output as
My name is Jeevan.
240 is my address.
... (7 Replies)
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Hi people;
i want to read the last word of the 14th line of my file1.txt. Here is the EXACT 14th line of the file.
250 SectorPortnum=3,AuxPortInUngo=2,PortDeviceGroup=1,PortDeviceSet=1,PorDevice=1 20 >>> Set.
i have to get the word Set. how can i call it and also how... (3 Replies)
Hi, I need a script to read last word of the line and out put in some temp file.
i
it can contain any word like:
My name is Harry.
or
My zip code is 24490
or it can be
My secret code is 024H
I just need last word of the line (Harry, or 2440 or 024H)
Thanks for the posts below.... (10 Replies)
Folks,
I am working on a file which has entries as follows. I am using while read line to generate desired output as follows.
filename1:
Name : sdt2156157_ID
NOS : 4567
NOS : 2348
Name : sdt2156158_ID
NOS : 4987
NOS : 2332
while read line... (3 Replies)
Hi,
I would like to read a file line by line and then store the whole line word by word in array so that I can do specific manipulation on each word.
$ cat test.txt
hello how are you
i am good
I would like to have an array created dynamically so that first time , the... (4 Replies)
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
LEARN ABOUT DEBIAN
anyevent::xmpp::ext::pubsub
AnyEvent::XMPP::Ext::Pubsub(3pm) User Contributed Perl Documentation AnyEvent::XMPP::Ext::Pubsub(3pm)NAME
AnyEvent::XMPP::Ext::Pubsub - Implements XEP-0060: Publish-Subscribe
SYNOPSIS
my $con = AnyEvent::XMPP::Connection->new (...);
$con->add_extension (my $ps = AnyEvent::XMPP::Ext::Pubsub->new);
...
DESCRIPTION
This module implements all tasks of handling the publish subscribe mechanism. (partially implemented)
METHODS
new This is the constructor for a pubsub object. It takes no further arguments.
delete_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to remove a node.
create_node ($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to create a node.
subscribe_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to retrieve items.
unsubscribe_node($con, $uri, $bc)> $con is the connection already established, $uri is the name of the node to be created $cb is the
callback
Try to unsubscribe from a node.
publish_item($con, $uri, $create_cb, $cb) $con is the connection already established, $uri is the name of the node to be created $create_cb
is the callback $cb is the callback
Try to publish an item.
retrive_items($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback
Try to retrieve items.
retrive_item($con, $uri, $id, $cb) $con is the connection already established, $uri is the name of the node to be created $id is the id of
the entry to be retrieved $cb is the cb
Try to retrieve item.
AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
CONTRIBUTORS
Chris Miceli - additional work on the pubsub extension
COPYRIGHT & LICENSE
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 AnyEvent::XMPP::Ext::Pubsub(3pm)