On Dec 1, 2009, at 16:14 , Aleksey Tsalolikhin wrote:
On Tue, Dec 1, 2009 at 8:32 AM, Randal L. Schwartz
<mer...@stonehenge.com> wrote:

$ perl -ni -e 'print unless /^# BEGIN project/../^# END project/' / etc/rc.machine
$ cat rc-addition >>/etc/rc.machine

Hi, Randal.  This is very handy.   What is the ..  part called and
where can I read more about it, please?  I don't see it in the
"perlre" manual.


The range/flipflop operator isn't part of regex syntax, it's an operator. (perldoc perlop, "The Range Operator")

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Discuss mailing list
Discuss@lopsa.org
http://lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to