You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guess someone beat me to implementing -o! (Which is fair, I’ve been postponing this since January)
So, as I mentioned in #308, I think the best combination for --only-matching and --replace would be an approximation of Ack’s --output: perform a replace on the matched part, and output only the result of the replacement, not anything else on the line. If there are multiple matches on a single line, output multiple lines. Same as on @kpp’s last comment, if I understood it correctly.
@kpp writes:
How about:
@mernen writes:
Guess someone beat me to implementing
-o
! (Which is fair, I’ve been postponing this since January)So, as I mentioned in #308, I think the best combination for
--only-matching
and--replace
would be an approximation of Ack’s--output
: perform a replace on the matched part, and output only the result of the replacement, not anything else on the line. If there are multiple matches on a single line, output multiple lines. Same as on @kpp’s last comment, if I understood it correctly.See also #422
The text was updated successfully, but these errors were encountered: