-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Previously this grep had a -1 flag meaning one match per file * The -1 flag is incompatible with GNU and BSD grep because they interpret -1 as -C 1, i.e. show one line of context around each match * Implement the common way to limit matches by adding -m (maximum) option * Allow -m0 because this is supported in the other versions * test1: perl grep -1 pat file1 file2 ---> no longer supported * test2: perl grep -m 2 pat file1 file2 ---> two matches per file
- Loading branch information
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters