Recent Posts

(TIL) Nix: Only Show The Matches

less than 1 minute read

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 th...

(TIL) Nix: List Names Of Files With Matches

less than 1 minute read

I often use grep and ag to search for patterns in a group or directory of files. Generally I am interested in looking at the matching lines themselves. Howev...

(TIL) Nix: Grep For Multiple Patterns

less than 1 minute read

You can use the -e flag with the grep command to search for a pattern. Additionally, you can use multiple -e flags to search for multiple patterns. For insta...

(TIL) Nix: Grep For Files Without A Match

less than 1 minute read

The grep command is generally used to find files whose contents match a pattern. With the -L (--files-without-match) flag, grep can be used to find files tha...