Skip to content

Is there any way to make ripgrep return exit code 0 on no match? #2675

Answered by BurntSushi
rew1nter asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe this is what you want?

$ grep -E -v '([4[0-9]{2}]\|[3[0-9]{2}])' test
https://docs-dev.corp.google.com [302] [https://login.corp.google.com/request?s=docs-dev.corp.google.com:443/uberproxy/&d=https://docs-dev.corp.google.com/%3Fupxsrf%3DADM2IpRSKWoNJATW6bUrttPKMSp4lgLbGG_tf14D11XqYK1UrQ:1701788940589&maxAge=1200&authLevel=2000000&keyIds=M9V,bLf,DU5,2O9&c=1] [302 Moved] [HSTS]
https://frame.ds-next-external-devel.qa.adz.google.com [302] [https://login.corp.google.com/request?s=frame.ds-next-external-devel.qa.adz.google.com:443/uberproxy/&d=https://frame.ds-next-external-devel.qa.adz.google.com/%3Fupxsrf%3DADM2IpRa4bJ9bSKUSiIjKNnRS4muL9QmtAYJvXL_hd3daKZt-Q:1701788940992&maxAge=1200&au…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@BurntSushi
Comment options

@BurntSushi
Comment options

@rew1nter
Comment options

@BurntSushi
Comment options

Answer selected by rew1nter
@BurntSushi
Comment options

@rew1nter
Comment options

@rew1nter
Comment options

@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants