-
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.
ed: initial support for global (g) command (#765)
* Basic usage of g command is to show lines matching a pattern * More advanced use of g command would be to modify the buffer; this needs more work * test1: g/text not found/p ---> no error is printed (consistent with BSD and GNU version) * test2: g/include/p ---> print matching lines * test3: g/include/n ---> prefix matching lines with line number * test4: g/t/l ---> matching lines are listed in with escapes
- Loading branch information
Showing
1 changed file
with
30 additions
and
12 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