Re: [PATCH v2] scripts/tags.sh: fix incompatibility with PCRE2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 03, 2023 at 07:20:51PM +0800, Jialu Xu wrote:
> 
> Just got a working grep without \K, seems that it is three times more
> efficient than sed in my test, is it necessary to update?
> 
> 	grep -Poh '(?<=^  )\S+|(?<== )\S+[^\\](?=$)' {} \+ |
> 
> --
> Jialu
>

I just tried this and it does have better performance. Even better than
your previous grep expression it seems, so I would definitely send a
patch.

--
Carlos Llamas



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux