11-01-2005
Thanks Ygor
Your recommendation worked!. Thanks for your help.
Regards,
Dave
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am trying to match a multi line string and return the matching string in one line. Here is the perl code that I wrote:
#!/usr/bin/perl
my $str='<title>My
title</title>';
if ($str =~ /(<title>)(+)(<\/title>)/ ){
print "$2\n";
}
It returns :
My
title
I want the... (3 Replies)
Discussion started by: sdubey
3 Replies
2. Shell Programming and Scripting
letz say that my file has 7 records with only one field. So my file has:
11111111
000000000000000
1111
aaaabbbccc
1111111222000000
aaaaaaaa
zz
All i need is:
1. when the field has a repetition of the same instance(a-z or 0-9), i would consideer it to be invalid.... (1 Reply)
Discussion started by: helengoldman
1 Replies
3. Shell Programming and Scripting
hi,
i want to extract the sessionID from this line.
QnA Session Id :
here the output should be--
QnA_SessionID=128589
Thanks
NT (3 Replies)
Discussion started by: namishtiwari
3 Replies
4. Shell Programming and Scripting
Hello all,
I need to match the red expressions in the following lines :
MACRO_P+P-_scrambledServices_REM_PRC30.xml
MACRO_P+P-_scrambledServices_REM_RS636.xml
MACRO_P+P-_scrambledServices_REM_RS535.xml
and so on...
Can anyone give me a PERL regular expression to match those characters ?
... (5 Replies)
Discussion started by: lsaas
5 Replies
5. Shell Programming and Scripting
Hi,
I need and expression for a word like abc_xyz_ykklm
The expresion should indicate that the word starts with abc and end with ykklm but does not contain xyz string in the middle.
Example: abc_tmn_ykklm is ok and abc_xyz_ykklm is not Ok.
Please help.
Regards. (1 Reply)
Discussion started by: asth
1 Replies
6. Shell Programming and Scripting
Hello,
I am trying to use perl LWP module to read and get a specfic URL page. The issue is that the URL ends with the data and time and time is not consistent it changes all the time. if anyone could help me how to write a regular expressin that would work in the LWP::UserAgent get function to... (0 Replies)
Discussion started by: bataf
0 Replies
7. Shell Programming and Scripting
Could you help me with this please. This regular expression seems to match for the wrong input
#!/usr/bin/perl
my $inputtext = "W1a$%XXX";
if($inputtext =~ m/+X+/)
{
print "matches\n";
}
The problem seems to be %. if inputtext is W1a$XXX, the regex doesnot match.... (5 Replies)
Discussion started by: suppandi7
5 Replies
8. Shell Programming and Scripting
I am completely new to perl programming. My father is helping me learn said programming language. However, I am stuck on one of the assignments he has given me, and I can't find very much help with it via google, either because I have a tiny attention span, or because I can be very very dense.
... (4 Replies)
Discussion started by: kittyluva2
4 Replies
9. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
10. Shell Programming and Scripting
Hi ,
I have the below array
my @actionText = ("delivered to governor on 21/23/3345" , "deliver jllj" , "ram 2345/43");
When i am trying to grep the contents of array and if mathced substituting with the digitis or some date format from the element like below
my @action = grep { $_ =~... (7 Replies)
Discussion started by: ragilla
7 Replies
LEARN ABOUT PLAN9
ng_sscfu
NG_SSCFU(4) BSD Kernel Interfaces Manual NG_SSCFU(4)
NAME
ng_sscfu -- netgraph SSCF at the UNI node type
SYNOPSIS
#include <netnatm/saal/sscopdef.h>
#include <netnatm/saal/sscfudef.h>
#include <netgraph/atm/ng_sscfu.h>
DESCRIPTION
The sscfu netgraph node type implements ITU-T recommendation Q.2130. This recommendation specifies the Service Specific Coordination Func-
tion at the UNI. This is a thin sub-layer between the SSCOP (see ng_sscop(4)) and the UNI signalling. This node does not really implement a
protocol but provides a mapping between the signals at the upper layer of the SSCOP and the signals the UNI expects at its lower layer. It
also provides default values for the parameters of the SSCOP.
After creation of the node, the SSCF instance must be created by sending an ``enable'' message to the node. If the node is enabled, default
SSCOP parameters can be retrieved and set in the corresponding SSCOP instance.
The node is shut down either by a NGM_SHUTDOWN message, or when all hooks are disconnected.
HOOKS
Each sscfu node has two hooks with fixed names:
lower This hook is the interface to the SSCOP. The interface expected here is exactly that which is exported by the ng_sscop(4) node type.
upper This is the interface to the UNI. It uses the following message format:
struct sscfu_arg {
uint32_t sig;
u_char data[];
};
The sig field is one of the following signals:
enum saal_sig {
SAAL_ESTABLISH_request, /* U -> SAAL: (UU) */
SAAL_ESTABLISH_indication, /* SAAL -> U: (UU) */
SAAL_ESTABLISH_confirm, /* SAAL -> U: (UU) */
SAAL_RELEASE_request, /* U -> SAAL: (UU) */
SAAL_RELEASE_confirm, /* SAAL -> U: */
SAAL_RELEASE_indication, /* SAAL -> U: (UU) */
SAAL_DATA_request, /* U -> SAAL: (DATA) */
SAAL_DATA_indication, /* SAAL -> U: (DATA) */
SAAL_UDATA_request, /* U -> SAAL: (UDATA) */
SAAL_UDATA_indication, /* SAAL -> U: (UDATA) */
};
The arrows in the comment show the direction of the signal, whether it is a signal that comes out of the node ('->'), or is sent by
the node user to the node ('<-'). The type of the data expected for the signal is specified in parentheses. This data starts at the
data field of the message structure.
If the lower hook is disconnected and the node is enabled, the protocol state is reset.
CONTROL MESSAGES
The sscfu node understands the generic messages plus the following:
NGM_SSCFU_GETDEFPARAM
This message returns a sscop_param structure, which contains the default parameters for the SSCOP at the UNI. This structure should
be used for a NGM_SSCOP_SETPARAM message to the SSCOP node below the SSCF.
NGM_SSCFU_ENABLE
This message creates the actual SSCF instance and initializes it. Until this is done, parameters may neither be retrieved nor set,
and all messages received on any hook are discarded.
NGM_SSCFU_DISABLE
Destroy the SSCF instance. After this, all messages on any hooks are discarded.
NGM_SSCFU_GETDEBUG
Retrieve the debugging flags in a uint32_t.
NGM_SSCFU_SETDEBUG
Set debugging flags. The argument must be a uint32_t.
NGM_SSCFU_GETSTATE
Retrieve the current state of the SSCFU instance in a uint32_t. If the node has not been enabled, 0 is returned.
SEE ALSO
netgraph(4), ng_atm(4), ng_sscop(4), ngctl(8)
AUTHORS
Harti Brandt <harti@FreeBSD.org>
BSD
October 24, 2003 BSD