Follow

New post as I'm learning more about grep and grep in emacs specifically: taonaw.com/2022-08-03/

@kensanata @eludom @jackbaty if you want to give it a look and tell me how much more I can add... feel free ;)

· · Web · 1 · 1 · 2

@jtr three alternatives also with individual drawback

1. single pattern:

-e "burger.*rest\|rest.*burger"

disad. everything between burger and rest is highl.

GNU grep with PCRE (-P instead of -e)

-P "(?=.*burger)(?=.*rest)"

disad. nothing is highl.

2. process substitution instead of pipe e.g. bash

-e burger <(grep rest *.org)

disad. (like pipe) only /last/ term is highl.

3. occur on occur buffer - n search terms. All highl.

disad. n return presses to /jump/ to match

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!