[ale] hmm. yer never too old to trip on Grep Reg Expressions
Charles Shapiro
hooterpincher at gmail.com
Mon Sep 26 09:22:20 EDT 2016
Also, some dialects escape the "+" RE since it's a (relatively) common
character in text. The same is true of bananas -- '(' matches itself, but
'\(' matches the leftparen RE. NB here that I have to escape the escape in
order to get it though shell command-line processing:
!:/home/cshapiro/Mapping_Contracts/forsythco> ls -l | grep "[abc]+" | wc -l
0
!:/home/cshapiro/Mapping_Contracts/forsythco> ls -l | grep "[abc]\\+" | wc
-l
632
!:/home/cshapiro/Mapping_Contracts/forsythco> uname -a
Linux roo 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17)
x86_64 GNU/Linux
!:/home/cshapiro/Mapping_Contracts/forsythco> grep -V
grep (GNU grep) 2.20
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see <
http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
!:/home/cshapiro/Mapping_Contracts/forsythco>
It's the Little Things in Life...
-- CHS
On Sun, Sep 25, 2016 at 11:02 AM, DJ-Pfulio <DJPfulio at jdpfu.com> wrote:
> On 09/25/2016 10:27 AM, DJ-Pfulio wrote:
> > I think egrep is just a hardlink to grep ... and enabled the -E switch.
>
> I'm wrong again! They have different inodes.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20160926/c5d6ac32/attachment.html>
More information about the Ale
mailing list