Hi All,
can you help me with "*" wildcard character in sed, i am a bit confused. I am going through a reference and found that below code
will also return a line that contain the string
how is that possible when there is no "a" in this string?? how does this wildcard works.
Any reference/suggestion would be appreciated.
hi,
I have
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or question of my own) is:
Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
hi,
I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses...
Here is the configuration of my system:
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or... (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
8. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Hi Experts,
I have a string with colon delimited, want 2nd colon to be changed to a pipe.
data:
101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:
I am trying with sed, but can change only 1 occurance:
echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
Hi All
I am using GNU/Linux
This is regarding the get command to retrieve files (filename with wild card characters) from remote server.
I thought Get command can retrieve only 1 file irrespective of the files it has on the remote server And it is the function of mget to retrieve all... (7 Replies)
Discussion started by: sparks
7 Replies
LEARN ABOUT PHP
xml_set_processing_instruction_handler
XML_SET_PROCESSING_INSTRUCTION_HANDLER(3) 1 XML_SET_PROCESSING_INSTRUCTION_HANDLER(3)xml_set_processing_instruction_handler - Set up processing instruction (PI) handlerSYNOPSIS
bool xml_set_processing_instruction_handler (resource $parser, callable $handler)
DESCRIPTION
Sets the processing instruction (PI) handler function for the XML parser $parser.
A processing instruction has the following format:
target data?>
?>) can not be quoted, so this character sequence should not appear in the PHP code you embed with PIs in XML documents.If it does, the
rest of the PHP code, as well as the "real" PI end tag, will be treated as character data.
PARAMETERS
o $parser
- A reference to the XML parser to set up processing instruction (PI) handler function.
o $handler
-$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function
named by $handler must accept three parameters:
handler (resource $parser, string $target, string $data)
o $parser
- The first parameter, parser, is a reference to the XML parser calling the handler.
o $target
- The second parameter, $target, contains the PI target.
o $data
- The third parameter, $data, contains the PI data.
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
Note
Instead of a function name, an array containing an object reference and a method name can also be supplied.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group XML_SET_PROCESSING_INSTRUCTION_HANDLER(3)