Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for markalex
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #288289 | Initial revision | — | over 1 year ago |
Answer | — |
A: grep AND search for multiple words in files You can utilize grep's PERL regexes, more specifically lookarounds, to check presence of two (or more) words. ```sh $ grep -Prn . -e '^(?=.\bfoo\b)(?=.\bbar\b)' ``` Here regex checks, that beginning of the line (`^`) is followed by words `foo` and `bar` somewhere in that line. Please notic... (more) |
— | over 1 year ago |