06-20-2018, 01:21 PM
(This post was last modified: 06-20-2018, 01:21 PM by NinjaKyat. Edited 1 time in total.)
Currently the -o (print match only) option for DWAINE's grep command does not work as intended. Instead of the matching text it only prints an empty line, making it a bit less useful.
This simple one line fix resolves the issue. (Calling grep -o will now return the match only, without the filename or line numbers).
I've made a pull request, but it also involves applying the original grep patch.
Here's the Patch.
This simple one line fix resolves the issue. (Calling grep -o will now return the match only, without the filename or line numbers).
I've made a pull request, but it also involves applying the original grep patch.
Here's the Patch.