Re: grep replacement using sed is behaving oddly
On Fri, Oct 21, 2022 at 03:09:32PM -0400, The Wanderer wrote:
> IOW, each seems to be half of the usual '\b' (edge of a word) set. With
> the default sed behavior (not sure whether that's basic regular
> expressions or extended regular expressions, in the nomenclature of the
> info document), you can use replace the latter with an alternation of
> both of the former:
The things you're discussing here, \< \> \b, are all GNU extensions.
They're *not* part of the POSIX standard BRE and ERE languages.
This doesn't mean you should stop using them. Just that you should be
aware that your script is not going to be portable if you use them.
Reply to: