On 2024-12-30 03:37, KMRH via Bug reports for GNU grep wrote:
Allow the command 'grep -A' (without specifying a number) to default to showing 
all lines after a match

We couldn't do that as-is, as 'grep -A 1' is equivalent to 'grep -A1' and people rely on that.

'grep -A 99999999999999999999999999999999999999999' does what you want already, even if 99999999999999999999999999999999999999999 is too big to fit into a machine word. Is that good enough? It would save your having to wait for the next grep release....

Alternatively, I suppose we could add syntax like 'grep -A Inf' to do what's requested, where "Inf" is short for infinity.



Reply via email to