mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 08:08:02 +00:00
Change the zsh heading to unix.
This commit is contained in:
10
unix/only-show-the-matches.md
Normal file
10
unix/only-show-the-matches.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user