Re:Grep flags – the good stuff
by xorcist on Wednesday February 02, 2022 @01:00PM
(#30181299)
That kind of matches are what regexps were intended for:
Unfortunately, the basic grep syntax doesn't give you an easy way of specifying both orders, so that would have to be something like:
You can specify random order in a couple of different ways with Perl-compatible regexes, such as lookaheading the search terms from the end of line marker. But it's not as easy to read as it should be.
[ Parent
| on HN ]
There are no comments on this comment yet.