Hi All,
I am facing a small problem in sed. I want to insert a line in the existing file.
Existing code:
access to attr=userPassword
by self write
by * auth
access to *
by self write
by users read
by anonymous auth
Desired code:
access to attr=userPassword
by self... (14 Replies)
Hi,
I have following problem. I have a file with time stamps and some data describing what happened between time stamps. Something like this:
10:00
meeting with K
meeting with L
11:00
lunch
12:00
work with K
13:00
From this file I have to get a file with... (7 Replies)
I have a text file for which i need a script which does some fancy search and replace.
Basically i want to loop through each line, if i find an occurance of certain string format then i want to carry on search on replace another line, once i replaced this line i will contine to search for the... (7 Replies)
Can someone help me? I been figuring out how I can search and extract a complicated search string from a file. The whole string is delimited by a period. And the file where I'm searching is composed of differnt string such as that. For example, I have this search string:
and I have a file... (3 Replies)
Yes, there is a great doc out there that discusses parsing csv files with sed, and this topic has been covered before but not enough to answer my question (unix.com forums).
I'm trying to parse a CSV file that has optional quotes like the following:
"Apple","Apples, are fun",3.60,4.4,"I... (3 Replies)
Hi All,
I have one file with below type of data in it,
$ cat test.txt
###123
###xyxytuerwb
###2
###tyupe
Here I would like to replace all the characters with "x" after the 3 "###" with the same number of characters.
Can you please help me to achieve this. (7 Replies)
Hi,
Below is the content of the file how it looks:
# EMAIL
#export BMS_EMAIL_ENABLED=true
export BMS_EMAIL_ENABLED=false
#export BMS_EMAIL_SERVER=esasmtp01.kohls.com
export BMS_EMAIL_SERVER=esasmtp01.kohls.com.SMTP_SERVICE
export BMS_EMAIL_FROM_ADDRESS=ec_notify@kohlsectest.com
export... (4 Replies)
I am a newbie and would like some help with the following -
Trying to search fileA for a string similar to -
AS11000022010 30.4 31.7 43.7 53.8 60.5 71.1 75.2 74.7 66.9 56.6 42.7 32.5 53.3
I then want to replace that string with a string from fileB - ... (5 Replies)
I have requirement to search for a text in the file and retrieve required lines that is user defined with unix command.
Eg:
Find the text UNIX in the below file and need to return Test 8 & Test 9
Test 1
Test 2
Test 3
Test 4
UNIX
Test 5
Test 6
Test 7
Test 8
Test 9
Result can... (8 Replies)
Hi,
I am trying to extract line number (first number), as well as everything from TSVal onwards.
4 1.474005 172.18.124.142 -> 74.125.228.46 TCP 2450940617 74 44021 > https Seq=0 Win=5840 Len=0 MSS=1380 SACK_PERM=1 TSval=2450940617 TSecr=0 WS=64
6 1.488149 172.18.124.142 ->... (1 Reply)
Discussion started by: sand1234
1 Replies
LEARN ABOUT REDHAT
netsnmp_old_api
old_api: Calls mib module code written in the old style of coLibrary Functions old_api: Calls mib module code written in the old style of code.(3)NAME
old_api: Calls mib module code written in the old style of code. - This is a backwards compatilibity module that allows code written in the
old API to be run under the new handler based architecture. More...
Functions
netsnmp_mib_handler * get_old_api_handler (void)
returns a old_api handler that should be the final calling handler.
int netsnmp_register_old_api (const char *moduleName, struct variable *var, size_t varsize, size_t numvars, oid *mibloc, size_t mibloclen,
int priority, int range_subid, oid range_ubound, netsnmp_session *ss, const char *context, int timeout, int flags)
Registers an old API set into the mib tree.
int netsnmp_register_mib_table_row (const char *moduleName, struct variable *var, size_t varsize, size_t numvars, oid *mibloc, size_t
mibloclen, int priority, int var_subid, netsnmp_session *ss, const char *context, int timeout, int flags)
registers a row within a mib table.
int netsnmp_old_api_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo,
netsnmp_request_info *requests)
implements the old_api handler.
DETAILED DESCRIPTION
This is a backwards compatilibity module that allows code written in the old API to be run under the new handler based architecture.
Use it by calling netsnmp_register_old_api().
FUNCTION DOCUMENTATION
netsnmp_mib_handler* get_old_api_handler (void)
returns a old_api handler that should be the final calling handler.
Don't use this function. Use the netsnmp_register_old_api() function instead.
Definition at line 40 of file old_api.c.
Referenced by netsnmp_register_mib_table_row(), and netsnmp_register_old_api().
int netsnmp_old_api_helper (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo,
netsnmp_request_info * requests)
implements the old_api handler.
Definition at line 233 of file old_api.c.
int netsnmp_register_mib_table_row (const char * moduleName, struct variable * var, size_t varsize, size_t numvars, oid * mibloc, size_t
mibloclen, int priority, int var_subid, netsnmp_session * ss, const char * context, int timeout, int flags)
registers a row within a mib table.
Definition at line 119 of file old_api.c.
int netsnmp_register_old_api (const char * moduleName, struct variable * var, size_t varsize, size_t numvars, oid * mibloc, size_t mibloclen,
int priority, int range_subid, oid range_ubound, netsnmp_session * ss, const char * context, int timeout, int flags)
Registers an old API set into the mib tree.
Functionally this mimics the old register_mib_context() function (and in fact the new register_mib_context() function merely calls this new
old_api one).
Definition at line 51 of file old_api.c.
net-snmp 5 Oct 2002 old_api: Calls mib module code written in the old style of code.(3)