Skip to content

How do i grep for multiple strings #2124

Answered by BurntSushi
Venomish-Snake asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah there are three ways: rg 'cat|dog', rg -e cat -e dog and:

$ printf "cat\ndog\n" > patterns
$ rg -f patterns

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Venomish-Snake
Comment options

Comment options

You must be logged in to vote
1 reply
@Venomish-Snake
Comment options

Answer selected by Venomish-Snake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants