On Mon, May 20, 2019 at 01:22:21PM -0600, Todd C. Miller wrote:
> 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.

Yes, that worked. Many thanks for the help guys.


-- 
Juan Francisco Cantero Hurtado http://juanfra.info

Reply via email to