would like grep context options (-A, -B, -C)
GNU grep supports -A N/-B N to show N lines of context before/after each match, and -C N to show context around a match. It would be nice if we supported these as well.
Updated by Sachidananda Urs about 9 years ago
As far as I know these options are part of POSIX standard.
However, most of the Unices implement the -A, -B, and -C options. It would be a good idea to implement them.
Updated by Gordon Ross over 7 years ago
Out for review here: (since July 2014)
Updated by Electric Monk over 5 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit 9992e6a682b1c35b4385c3b512db329ec8ab9ede
commit 9992e6a682b1c35b4385c3b512db329ec8ab9ede Author: Matthew Barden <firstname.lastname@example.org> Date: 2017-11-10T18:48:44.000Z 4701 would like grep context options (-A, -B, -C) Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Gary Mills <firstname.lastname@example.org> Reviewed by: Gordon Ross <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>