hi,
im quite new to perl regexp. i have a problem where i want to extract a word from a given string. but the word is unknown, only fact is that it appears as the second word in the string.
Eg.
input string(s) :
char var1 = 'A';
int var2 = 10;
char *ptr;
and what i want to do is... (3 Replies)
I am using the following code:
set LASInputFile = `ls *. | head -1`
set COMPLine = `grep -i :COMPANY $LASInputFile`
to extract the following line from my input file:
COMP. XYZ Public Company :COMPANY NAME
I now need to extract the full name of the company which... (15 Replies)
I have these files in a directory. It may have more class than the sample below:
DEPT_CHEM101LEC_D_20110301.DAT
DEPT_CHEM101LAB_D_20110301.DAT
DEPT_BIO105LEC_D_20110325.DAT
DEPT_BIO105LAB_D_20110325.DAT
DEPT_CSC308LEC_D_20110327.DAT
DEPT_CSC308LAB_D_20110327.DAT
Is there way to extract out... (5 Replies)
Hi,
i've a string
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD/TESi T_11_HD_120/hd-12
i need to get string, like
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD
the words from HD should get deleted, i need only a string till HD, i dont want to use any built in... (4 Replies)
I am working with the ksh shell in HP UNIX and I am attempting to extract a word, beginning with a particular string and ending at the first space. for example I want to extract the word or string MS_RECENT_ACTIVITY from the following string
" This has been entered in MS_RECENT_ACTIVITY the... (2 Replies)
I have the following script (which I made by my self)
#!/bin/bash
# add a few empty lines to make it more legible
# add a date description on each update interval
echo "" >> /home/user/DYN_DNS_IP_change.log
echo "" >> /home/user/DYN_DNS_IP_change.log
echo "" >>... (6 Replies)
Hello All,
I am running a command find . -name amp.cfg | cut -c 3- which gives me output something like below
rel/prod/amp.cfg
rel/fld/amp.cfg
deb/detail/amp.cfg
deb/err/amp.cfg I want to remove trailing "/amp.cfg" so that i should get output something like... (7 Replies)
Dear all,
I have a file a.txt like below:
1_234560_A_G_b37 1 2 1 2 2 2 ...
1_35465767_C_T_b37 2 1 1 2 2 2 ...
2_490638010_A_T_b37 1 2 1 2 2 2 ...
10_4567899_T_G_b37 2 2 1 2 2 2 ...
...
what I want to do is extracting rows starting with "10_" like : 10_4567899_T_G_b37 2 2 1 2 2... (1 Reply)
Discussion started by: forevertl
1 Replies
LEARN ABOUT PHP
udm_find
UDM_FIND(3) 1 UDM_FIND(3)udm_find - Perform searchSYNOPSIS
resource udm_find (resource $agent, string $query)
DESCRIPTION
Performs a search.
The search itself. The first argument - session, the next one - query itself. To find something just type words you want to find and press
SUBMIT button. For example, "mysql odbc". You should not use quotes " in query, they are written here only to divide a query from other
text. mnoGoSearch will find all documents that contain word "mysql" and/or word "odbc". Best documents having bigger weights will be dis-
played first. If you use search mode ALL, search will return documents that contain both (or more) words you entered. In case you use mode
ANY, the search will return list of documents that contain any of the words you entered. If you want more advanced results you may use
query language. You should select "bool" match mode in the search from.
PARAMETERS
o $agent
- A link to Agent, received after call to udm_alloc_agent(3).
o $query
- mnoGoSearch understands the following boolean operators: & - logical AND. For example, "mysql & odbc". mnoGoSearch will find
any URLs that contain both "mysql" and "odbc". | - logical OR. For example "mysql|odbc". mnoGoSearch will find any URLs, that
contain word "mysql" or word "odbc". ~ - logical NOT. For example "mysql & ~odbc". mnoGoSearch will find URLs that contain word
"mysql" and do not contain word "odbc" at the same time. Note that ~ just excludes given word from results. Query "~odbc" will
find nothing! () - group command to compose more complex queries. For example "(mysql | msql) & ~postgres". Query language is
simple and powerful at the same time. Just consider query as usual boolean expression.
RETURN VALUES
Returns a result link identifier on success or FALSE on failure.
PHP Documentation Group UDM_FIND(3)