The "|" in egrep is an "or".
It problably make more sense to convert to
awk takes the same ERE as egrep, namely "[7-9][0-9]%|100%" but this operates on $5=column#5 only.
The main advantage is that it only prints the header (from NR=line#1) if needed.
This User Gave Thanks to MadeInGermany For This Post:
Hi,
i am using egrep -f. The file with the expressions is very big and if i make the file a lot smaller, it works fine. Only if i use the original file, witch has about 20.000 lines it doesn't seem to work. Is the file to big, or do i need more patience??
my command is:
egrep -f... (2 Replies)
I have a file called alert.log containing the following:
WARNING: received KRVX_OPER_CANNOT_SUPPORT
knlldmm: gdbnm=CROOP
knlldmm: objn=23793
knlldmm: objv=1
knlldmm: scn=5189816456
knllgobjinfo: MISSING Streams multi-version data dictionary!!!
knlldmm: gdbnm=FDROP
knlldmm: objn=49385... (9 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Hi I've been searching google and have not found what egrep -c means. Does anyone know where I can get a cheat sheet or what that -c means?
thanks,
Linda (2 Replies)
Hi Guys,
we have a shell script which basically query the Database which retrieves huge data and use the data with "egrep" .
Now there is some data which contains characters like "abc)" and the same is used like below :
"egrep (.+\|GDPRAB16\|GDPR/11702 96 abc)\|$ temp.txt"
now while... (7 Replies)
Hallo,
I need to test a String (a special ip number-string).
So I want to run that:
ipadress=172.0.0.0
# for debugging:
echo $ipadress | egrep -e '172\.?\.??\.??$'
# the test that doesnt work
if test -z `echo $ipadress | egrep -e '172\.?\.??\.??$'` != ""
then
echo "match"
else... (1 Reply)
Hi,
I am wondering if it's possible to link multiple patterns with egrep.
Here here is what I am doing :
grep -v ";;" | grep -v ARC_TIME | grep -v \* | grep -v STAS0 Can I do all of this by invoking egrep just once ?
Thanks (4 Replies)
Hi,
I need to search for a exact word in a file and I have a list of allowable values in a list file. I search something like this using egrep -f option:
>egrep -f list.txt data.txt
New
New York
NewYork
>
list.txt file has the allowable value for search and this file can be edited to... (5 Replies)
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
LEARN ABOUT OPENSOLARIS
sip_create_response
sip_create_response(3SIP) Session Initiation Protocol Library Functions sip_create_response(3SIP)NAME
sip_create_response - create a response for a SIP request
SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ]
#include <sip.h>
sip_msg_t sip_create_response(sip_msg_t sip_request,
int response_code, char *response_phase,
char *totag, char *contact_uri);
DESCRIPTION
The sip_create_response() function creates and returns a SIP message in response to the SIP request sip_request. The response line in the
resulting SIP message is created using the response code in response_code and the phrase in response_phrase. The response line has the SIP-
Version of "2.0". If a non-null totag is specified, the resulting SIP response has a TO header with a tag value from totag. If totag is
null and the response_code is anything other than 100 (TRYING), sip_create_response() adds a TO header with a randomly generated tag value.
If the response_code is 100 and totag is null, the SIP response has a TO header without a tag parameter. If contact_uri is non-null, a CON-
TACT header is added to the SIP response with the URI specified in contact_uri. The SIP response has the following headers copied from
sip_request:
All VIA headers
FROM header
TO header (with tag added, if required, as stated above)
CALL-ID header
CSEQ header
All RECORD-ROUTE headers
RETURN VALUES
The sip_create_response() function returns the resulting SIP message on success and NULL on failure.
The value of errno is not changed by these calls in the event of an error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO libsip(3LIB)SunOS 5.11 25 Jan 2007 sip_create_response(3SIP)