02-17-2009
This way you can get them on the seperate line.
grep -B 1 -i SIP forum.txt | sed -e 's/<value>//g' -e 's/<key>//g' -e 's/<\/value>//g' -e 's/<\/key>//g'
- nilesh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello. I would like to extract the word "PATTERN" from a file that occurs on mulitple lines:
{1:5TIROEKUDRSH0027000755}{2:O4351423051114PATTERN40130656410423N}
Thank you. (5 Replies)
Discussion started by: bestbuyernc
5 Replies
2. Shell Programming and Scripting
thank youuuu (0 Replies)
Discussion started by: rnallamothu
0 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
can anyone help me out in extracting the pattern from a file...
The Input file is:
NFS B.11.11 ONC/NFS; Network-FileSystem,InformationServices,Utilities|123
NParProvider B.11.11.01.04.01.01 nPartition Provider|456
NPartition A.01.02 Enhanced NPartition Commands/789... (6 Replies)
Discussion started by: aajan
6 Replies
4. UNIX for Advanced & Expert Users
HI Guys,
Have a Doubt......
I have a pattern "abcdef"
and i need to extract the third character..ie(c)
How to achieve it? (10 Replies)
Discussion started by: aajan
10 Replies
5. Solaris
Hi All,
How to extract User,Process Name,Arguments from the output of "/usr/ucb/ps -auxww" on Solaris?
Please Reply...
Thanks In Advance...
Harikrishna (3 Replies)
Discussion started by: Harikrishna
3 Replies
6. Shell Programming and Scripting
Hi
I have a pattern like :
SYSTEM_NAME-232-S7-200810060949.LOG
Here I need to extract system name and the timestamp and also the numeric number after "-S" i.e 7 here .
I am not very sure of whether I should use sed / awk for this ?:confused:
Thanks,
Priya. (6 Replies)
Discussion started by: priyam
6 Replies
7. Shell Programming and Scripting
I am trying to extract the numbers from the strings.
Lakers win 80% of the games
24 numbered Kobe scores 90% from free throw line
Chances of Lakers winning championship is 100%
I have data like this. and am looking to extract the %
80%
90%
100% (6 Replies)
Discussion started by: grajp002
6 Replies
8. Shell Programming and Scripting
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies
9. Shell Programming and Scripting
xyz_dat_20110501_00000789.tar
xyz_meta_20110501_00000789.tar
My requirement is to get the string 'dat' and 'meta' from the above string.
Thanks (4 Replies)
Discussion started by: vedanta
4 Replies
10. Shell Programming and Scripting
story
------------------------
The file is a.out, it consist a set of logs from user access to my system ( email system)
question
--------------------------
using shell script, how can we extract 2 sets of IP output from the a.out log by separate the IP, determine human and non-human... (21 Replies)
Discussion started by: Mr_47
21 Replies
LEARN ABOUT DEBIAN
net::sip::redirect
Net::SIP::Redirect(3pm) User Contributed Perl Documentation Net::SIP::Redirect(3pm)
NAME
Net::SIP::Redirect - Send redirect to Requests based on lookup at a registrar
SYNOPSIS
my $reg = Net::SIP::Registrar->new(...);
my $redir = Net::SIP::Redirect(
dispatcher => $dispatcher,
registrar => $reg,
);
DESCRIPTION
This package implements a simple redirection of Requests using the information provided by a registrar.
CONSTRUCTOR
new ( %ARGS )
This creates a new redirect object, %ARGS can have the following keys:
dispatcher
Net::SIP::Dispatcher object manging the registar. Mandatory.
registrar
Registrar object. This is an object like a Net::SIP::Registrar, which has a "query(address)" method which returns a list of
contacts.
METHODS
receive ( PACKET,LEG,FROM )
PACKET is the incoming packet, LEG is the Net::SIP::Leg where the packet arrived and FROM is the "ip:port" of the sender. Responses
will be send back to the sender through the same leg.
Called from the managing Net::SIP::Dispatcher object if a new packet arrives. Will return "()" and ignore the packet if it's an
REGISTER request.
For Requests it will query the registrar and return either "302 Moved Temporarily" with the list of contacts or "404 Not found" if the
address is not registered.
perl v5.14.2 2010-05-31 Net::SIP::Redirect(3pm)