Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct statement about ripgrep #94

Closed
kpym opened this issue May 7, 2022 · 4 comments
Closed

Correct statement about ripgrep #94

kpym opened this issue May 7, 2022 · 4 comments

Comments

@kpym
Copy link

kpym commented May 7, 2022

In the readme we can read :

It is the replace that is interesting, which grep and ripgrep cannot do, ...

Which is not true. You can make a replacements with ripgrep using the -r flag. For example :

>  echo "cats are nice" | rg '(cats)' -r 'some $1 and some dogs'
some cats and some dogs are nice
@nevdelap
Copy link
Owner

nevdelap commented May 9, 2022

Ok. There was long discussions about adding replace to ripgrep where the author said he didn't want to do it. I'll update. Thanks.

@nevdelap
Copy link
Owner

nevdelap commented May 9, 2022

If I read BurntSushi/ripgrep#74 correctly, it can replace to terminal, but cannot replace in files. Someone also raised BurntSushi/ripgrep#2115 which was closed.

image

@nevdelap
Copy link
Owner

nevdelap commented May 9, 2022

I've added some words to clarify, please let me know if it is sufficient. Thanks.

@kpym
Copy link
Author

kpym commented May 9, 2022

Thanks for considering my request. It looks ok for me.

@kpym kpym closed this as completed May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants