Sponsored Content
Full Discussion: Pattern Recognition - perl
Top Forums UNIX for Dummies Questions & Answers Pattern Recognition - perl Post 302090050 by apoorvasharma80 on Friday 22nd of September 2006 07:09:24 AM
Old 09-22-2006
Hi Scorreg,

In perl we most often we use directl pattern matching. This 'm' is nothin but the match operator, often used in conjunction with the bind operator(~).
'^' just signifies the start of the pattern and '!' is delimiter.

You can write the same as ......

=~ {^(/.*)/bin/xx}

Now the 'm' is absent and '{' and '}' are delimiters!!
 

4 More Discussions You Might Find Interesting

1. OS X (Apple)

Automatic device recognition in OSX

Can anyone point me to a resource (or answer my question) that will show me how to automatically run a script in OSX when a device is plugged in. The OS recognizes that the device is plugged in but how do I direct it to do something I want it to do. it seems that linux has udev but what would... (2 Replies)
Discussion started by: djkuzenko
2 Replies

2. Shell Programming and Scripting

perl:: search for tow pattern and replace the third pattern

Hi i want to search two pattern on same line and replace onther pattern.. INPut file aaaa bbbbb nnnnnn ttttt cccc bbbbb nnnnnn ppppp dddd ccccc nnnnnn ttttt ffff bbbbb oooooo ttttt now i want replace this matrix like.. i want search for "bbbbb","nnnnnn" and search and replace for... (4 Replies)
Discussion started by: nitindreamz
4 Replies

3. Shell Programming and Scripting

Perl pattern use

Hi , I have a file. I would like to split each line into 3 value. Ex: i/p line: 09.11.12 04:40: 561 users on GCSS_gcsspr3a. Expect output: $a=09.11.12 04:40 $b=561 $c=GCSS_gcsspr3a. Any idea plz Thanks, Mani (1 Reply)
Discussion started by: Mani_apr08
1 Replies

4. UNIX for Beginners Questions & Answers

Conditional pattern recognition with awk

Hi, I would need some help extracting the desired data from the following text: # Time_result: 1.056179 next_value: 0.000077 OTHER VALUE 445552341; SELECT row with values # IP = 192.168.1.15 # Time: 45 # Time_result: 100.15 next_value: 0.000077 OTHER VALUE 445552341; SELECT row with... (2 Replies)
Discussion started by: alex2005
2 Replies
ALTER 
OPERATOR(7) PostgreSQL 9.2.7 Documentation ALTER OPERATOR(7) NAME
ALTER_OPERATOR - change the definition of an operator SYNOPSIS
ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } ) OWNER TO new_owner ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } ) SET SCHEMA new_schema DESCRIPTION
ALTER OPERATOR changes the definition of an operator. The only currently available functionality is to change the owner of the operator. You must own the operator to use ALTER OPERATOR. To alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have CREATE privilege on the operator's schema. (These restrictions enforce that altering the owner doesn't do anything you couldn't do by dropping and recreating the operator. However, a superuser can alter ownership of any operator anyway.) PARAMETERS
name The name (optionally schema-qualified) of an existing operator. left_type The data type of the operator's left operand; write NONE if the operator has no left operand. right_type The data type of the operator's right operand; write NONE if the operator has no right operand. new_owner The new owner of the operator. new_schema The new schema for the operator. EXAMPLES
Change the owner of a custom operator a @@ b for type text: ALTER OPERATOR @@ (text, text) OWNER TO joe; COMPATIBILITY
There is no ALTER OPERATOR statement in the SQL standard. SEE ALSO
CREATE OPERATOR (CREATE_OPERATOR(7)), DROP OPERATOR (DROP_OPERATOR(7)) PostgreSQL 9.2.7 2014-02-17 ALTER OPERATOR(7)
All times are GMT -4. The time now is 09:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy