[GRASS-dev] grep -E?

[I'm extending v.in.garmin to work with gardump from Snafu's garmin-utils]

can we expect 'grep -E' to work everywhere grep works? (aka egrep)

ie is -E portable or a GNU extension? I want to use the '|' infix operator.

Hamish

Hamish wrote:

[I'm extending v.in.garmin to work with gardump from Snafu's garmin-utils]

can we expect 'grep -E' to work everywhere grep works? (aka egrep)

ie is -E portable or a GNU extension? I want to use the '|' infix operator.

Just use basic syntax and use \| instead of | .

Having said that, I'm fairly sure that both "grep -E" and "egrep" are
portable.

--
Glynn Clements <glynn@gclements.plus.com>