Skip to main content
3 events
when toggle format what by license comment
Feb 11, 2022 at 22:26 comment added Miraclx This is the most helpful answer, especially since the exit code isn't zero when the pattern wasn't matched. For example: grep --color -E "test|$" yourfile just highlights all occurrences of "test" in the file and even when there are no matches, it still returns 0 which is counter-intuitive. However: rg --passthru test yourfile highlights the occurrences but returns a non-zero exit code when the pattern wasn't matched.
Jun 11, 2020 at 14:16 history edited CommunityBot
Commonmark migration
Apr 11, 2018 at 9:52 history answered kenorb CC BY-SA 3.0