08-13-2009
If you are not very familiar with regular expressions (or even if you are), I'd recommend this site:
RegExr: Online Regular Expression Testing Tool
Gives you the opportunity to see the result of your reg exp, as well as explains what each part of the reg exp is doing
9 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have replaced my current Intel PC machine with Solaris 10, it use to have windows XP.
I am sure alot of people already done this and i have seen Solaris running smoothly but having keyboard problem.
What is the equal keys in a QWERTY keyboard for selection <Stop+A> ?
Is there a... (5 Replies)
Discussion started by: tlee
5 Replies
2. Shell Programming and Scripting
Hi,
I have the below script executed
arg="dir"
if "$arg" = "dir"
then
echo "true"
else
echo "false"
fi
Please let me know what happens in the if command.
My output is:
dir: dir: No such file or directory
false
which is not the desired output.
When i used test command... (1 Reply)
Discussion started by: anijan
1 Replies
3. Shell Programming and Scripting
Does anybody understand why this is not being interpreted as true.
Script:
#!/bin/bash
errored=`grep "errored" new_update_scripts.txt`
echo $errored = "errored"
if ; then
echo true
else
echo false
fi
Output:
$ UpdateScripts
errored = errored
false (7 Replies)
Discussion started by: scottwmackey
7 Replies
4. Shell Programming and Scripting
while + and equal to zero ; then
what to punt instead of phrase and equal to zero.
it's bash
thank you in advance (1 Reply)
Discussion started by: losh
1 Replies
5. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
6. UNIX for Dummies Questions & Answers
I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header.
In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
7. Shell Programming and Scripting
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{
------
This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies
8. Shell Programming and Scripting
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
9. UNIX for Advanced & Expert Users
Did I do something wrong with this awk not equal? For some reason it prints twice.
>awk '{if ($4 != "root") print $1 " " $4 " " $5}' ls_test
server10: njs nodeadm
server10: njs nodeadm
>grep server10 ls_test
server10: drwxr-sr-x. 18 njs nodeadm 4096 Aug 16 09:42 /opt
> (2 Replies)
Discussion started by: cokedude
2 Replies
LEARN ABOUT DEBIAN
exosip2_registration
eXosip2 REGISTER and Registration Management(3) libeXosip2 eXosip2 REGISTER and Registration Management(3)
NAME
eXosip2 REGISTER and Registration Management -
Functions
int eXosip_register_build_initial_register (const char *from, const char *proxy, const char *contact, int expires, osip_message_t **reg)
int eXosip_register_build_initial_register_withqvalue (const char *from, const char *proxy, const char *contact, int expires, const char
*qvalue, osip_message_t **reg)
int eXosip_register_build_register (int rid, int expires, osip_message_t **reg)
int eXosip_register_send_register (int rid, osip_message_t *reg)
int eXosip_register_remove (int rid)
Detailed Description
Function Documentation
int eXosip_register_build_initial_register (const char *from, const char *proxy, const char *contact, intexpires, osip_message_t **reg)
Build initial REGISTER request.
Parameters:
from SIP url for caller.
proxy Proxy used for registration.
contact Contact address. (optional)
expires The expires value for registration.
reg The SIP request to build.
int eXosip_register_build_initial_register_withqvalue (const char *from, const char *proxy, const char *contact, intexpires, const char
*qvalue, osip_message_t **reg)
Build initial REGISTER request with qvalue for contact.
Parameters:
from SIP url for caller.
proxy Proxy used for registration.
contact Contact address. (optional)
expires The expires value for registration.
qvalue The qvalue value for contact header.
reg The SIP request to build.
int eXosip_register_build_register (intrid, intexpires, osip_message_t **reg)
Build a new REGISTER request for an existing registration.
Parameters:
rid A unique identifier for the registration context
expires The expires value for registration.
reg The SIP request to build.
int eXosip_register_send_register (intrid, osip_message_t *reg)
Send a REGISTER request for an existing registration.
Parameters:
rid A unique identifier for the registration context
reg The SIP request to build. (NULL for default REGISTER)
int eXosip_register_remove (intrid)
Remove existing registration without sending REGISTER.
Parameters:
rid A unique identifier for the registration context
Author
Generated automatically by Doxygen for libeXosip2 from the source code.
Version 3.1.0 Sun Jun 24 2012 eXosip2 REGISTER and Registration Management(3)