mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
330 B
330 B
Only Show The Matches
Tools like grep, ack, and ag make it easy to search for lines in a
file that contain certain text and patterns. They all come with the -o
flag which tells them to only show the part that matches.
This is particularly powerful when used with regex and piped into other programs.
h/t Dillon Hafer