On Mon, 20 May 2019 20:01:12 +0200, Juan Francisco Cantero Hurtado wrote:

> The grep command works with GNU, NetBSD, FreeBSD and BusyBox. It fails
> on OpenBSD and Solaris 11. I'm suggesting upstream to change the command
> to "grep -e ".datapack" -e ".histpack"" but I would like to know if this
> is a bug or we just don't support the | in the grep patterns.

That's GNU regexp format, not POSIX.  The standard way to do this
is with an extended regular expression using egrep.  E.g.

    cat test.txt | egrep ".datapack|.histpack"

though you should escape the '.' if you want it to match literally.

 - todd

Reply via email to