I have tried sed, awk and perl commands but probably these commands aren't processing the file with too long line in it.
I cannot 'fold' the file as it breaks the file at a fixed width, disrupting the xml tags and xml data.
1) What is your file size ?
2) Is you sed/awk implementation version compiled for 64bit or 32bit plateform ?
(What gives the command file <yourfile>)
3) Which sed command did you try ?
Did you try something like :
(this UUOC is just for test purpose to see if sed can better handle it as a stream than as a file)
(or choose another character than the hash # , choose one so that it doesn't appear in your original file)
hai
i am very new to unix.
i am having two files like this.
first.properties
cache.ZA.TL_CCY=SELECT trim(CCY_CODE)||trim(COUNTRY_CODE)||trim(CITY_CODE) AS... (4 Replies)
hi,
when i am doing the following things getting error
Can anyone please suggest
i have a file where there is a line like the following
branch=dev sdf dev jin kilii fin kale boyle dev james dev
i want to search the existance of dev in the above line.
cat "$file" | sed -n... (8 Replies)
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (6 Replies)
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (3 Replies)
Hi ,
I am doing some enhancements in an existing shell script. There it used the awk command in a function as below :
float_expr() {
IFS=" " command eval 'awk "
BEGIN {
result = $*
print result
exit(result == 0)
}"'
}
It calls the function float_expr to evaluate two values ,... (1 Reply)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi,
I want to achieve something similar to what described in another post:
The difference is I want to add the line if the pattern is not found.
File 1:
A123, valueA, valueB
B234, valueA, valueB
C345, valueA, valueB
D456, valueA, valueB
E567, valueA, valueB
F678, valueA, valueB
... (11 Replies)
Hi,
I currently have a problem that I need to read a file line by line.
After I read it line by line there are some commands in which I have to change a specific string.(In my case, I have to make a script that changes all the passwords into hash value)
Here is a sample input... (3 Replies)
I have a topic line in markdown that spans more than 80 characters that i need to add a line break. Markdown is simply treating the line break as a brand new line instead of continuing as a topic line.
Eg:
# This is a very long
line
Markdown interprets it as
This is a very long
line (4 Replies)
Discussion started by: dragonpoint
4 Replies
LEARN ABOUT DEBIAN
netsnmp_row_merge
row_merge(3snmp) net-snmp row_merge(3snmp)NAME
row_merge -
Calls sub handlers with request for one row at a time.
Defines
#define ROW_MERGE_WAITING 0
#define ROW_MERGE_ACTIVE 1
#define ROW_MERGE_DONE 2
#define ROW_MERGE_HEAD 3
Functions
netsnmp_mib_handler * netsnmp_get_row_merge_handler (int prefix_len)
returns a row_merge handler that can be injected into a given handler chain.
int netsnmp_register_row_merge (netsnmp_handler_registration *reginfo)
functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you.
netsnmp_row_merge_status * netsnmp_row_merge_status_get (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, int
create_missing)
retrieve row_merge_status
int netsnmp_row_merge_status_first (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo)
Determine if this is the first row.
int netsnmp_row_merge_status_last (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo)
Determine if this is the last row.
int netsnmp_row_merge_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info
*reqinfo, netsnmp_request_info *requests)
Implements the row_merge handler.
void netsnmp_init_row_merge (void)
initializes the row_merge helper which then registers a row_merge handler as a run-time injectable handler for configuration file use.
Detailed Description
Calls sub handlers with request for one row at a time.
This helper splits a whole bunch of requests into chunks based on the row index that they refer to, and passes all requests for a given row
to the lower handlers. This is useful for handlers that don't want to process multiple rows at the same time, but are happy to iterate
through the request list for a single row.
Function Documentation
netsnmp_mib_handler* netsnmp_get_row_merge_handler (int prefix_len)
returns a row_merge handler that can be injected into a given handler chain.
Definition at line 28 of file row_merge.c.
void netsnmp_init_row_merge (void)
initializes the row_merge helper which then registers a row_merge handler as a run-time injectable handler for configuration file use.
Definition at line 360 of file row_merge.c.
int netsnmp_register_row_merge (netsnmp_handler_registration * reginfo)
functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you.
Definition at line 42 of file row_merge.c.
int netsnmp_row_merge_helper_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info *
reqinfo, netsnmp_request_info * requests)
Implements the row_merge handler.
Definition at line 154 of file row_merge.c.
int netsnmp_row_merge_status_first (netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo)
Determine if this is the first row. returns 1 if this is the first row for this pass of the handler.
Definition at line 110 of file row_merge.c.
netsnmp_row_merge_status* netsnmp_row_merge_status_get (netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, int
create_missing)
retrieve row_merge_status
Definition at line 67 of file row_merge.c.
int netsnmp_row_merge_status_last (netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo)
Determine if this is the last row. returns 1 if this is the last row for this pass of the handler.
Definition at line 130 of file row_merge.c.
Author
Generated automatically by Doxygen for net-snmp from the source code.
Version 5.4.3.pre1 23 May 2010 row_merge(3snmp)