I need to get the world "wanted" from this string and "assign it to a variable".. but it's not a static word so i want to get that word by searching the pattern as follows
<space>desiredword<space>(
and i tried to get that word by
How can i do this?
Many thanks in advance..
Last edited by Yogesh Sawant; 07-05-2009 at 11:19 AM..
Reason: added code tags
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)
Hi, guys. I have one question:
I need to search for a string in a file, and then extract another string from the file and assign it to a variable.
For example:
the contents of the file (group) is below:
...
ftp:x:23:
mail:x:34
...
testing:x:2001
sales:x:2002
development:x:2003
...... (6 Replies)
Hi Guys,
In the following line:
cn=portal.090710.191533.428571000,cn=groups,dc=mp,dc=rj,dc=gov,dc=br
I need to extract this string: portal.090710.191533.428571000
As you can see this string always will be bettween "cn=" and "," strings.
Someone know one regular expression to... (4 Replies)
Hi,
This is the first time playing around with perl and need some help.
Assuming if i have a line of text that looks like this:
Date/Time=Nov 18 17:12:11;Device Name=192.168.1.1;Device IP=192.168.1.1;Device Class=IDS;Source IP=155.212.212.111;Source Name=UNKNOWN;Source Port=1679... (3 Replies)
Hi,
I have a input file with following values
(test.out)
I would like to grep all lines with word 'PANIC' and sent it another file using perl program with grep command. I have been trying different ways and not working. Pls advice. Thanks a lot for the help.
--example--... (3 Replies)
continuing from my previous post, whose link is given below as a reference
https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569
consider there is create table commands in a file for eg:
CREATE TABLE `Blahblahblah` (
`id` int(11) NOT NULL... (2 Replies)
Hi,
May i ask if someone share some command for extracting a string between 2 ref string in a txt file
My objective: i had a file with multiple lines and wants only to extract the string "watch?v=IbkAXOmEHpY" or "watch?v=<11 random character>", when i used "grep 'watch?=*' i got a results per... (4 Replies)
Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed
Bold letters are the stations . The whole file has multiple stations .
Below example i wanted to search... (4 Replies)
Hello guys,
I have problem with hpux shell script. I have one big text file that contains like
SOH
bla bla bla
bla bla bla
ETX SOH
bla bla bla
ETX
SOH
bla bla bla
ETX
What I need to do is save first SOH*BLA into file1.txt, save second SOH*BLA into file2.txt and so on.... (17 Replies)
Hello,
I have a log file with logs such as
01/05/2017 10:23:41 : file.log.38: database error, MODE=SINGLE, LEVEL=critical, STATE: 01170255 (mode main
how can i use perl to extract the 8-digit number below from the string
01170255
Thanks (7 Replies)
Discussion started by: james2009
7 Replies
LEARN ABOUT CENTOS
th_wbrk_line
thai/thwbrk.h(3) libthai thai/thwbrk.h(3)NAME
thai/thwbrk.h -
Thai wide-char word segmentation.
SYNOPSIS
Functions
int th_wbrk (const thwchar_t *s, int pos[], size_t n)
Find word break positions in Thai wide-char string.
int th_wbrk_line (const thwchar_t *in, thwchar_t *out, size_t n, const thwchar_t *delim)
Insert word delimitors in given wide-char string.
Detailed Description
Thai wide-char word segmentation.
Function Documentation
int th_wbrk (const thwchar_t *s, intpos[], size_tn)
Find word break positions in Thai wide-char string.
Parameters:
s : the input string to be processed
pos : array to keep breaking positions
n : size of pos[]
Returns:
the actual number of breaking positions occurred
Finds word break positions in Thai string s and stores at most n breaking positions in pos[], from left to right.
int th_wbrk_line (const thwchar_t *in, thwchar_t *out, size_tn, const thwchar_t *delim)
Insert word delimitors in given wide-char string.
Parameters:
in : the input wide-char string to be processed
out : the output wide-char buffer
n : the size of out (as number of elements)
delim : the wide-char word delimitor to insert
Returns:
the actual size of the processed string (as number of elements)
Analyzes the input string and store the string in output buffer with the given word delimitor inserted at every word boundary.
Author
Generated automatically by Doxygen for libthai from the source code.
Version 0.1.14 Tue Jun 17 2014 thai/thwbrk.h(3)