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

[FR] Apply replace only on lines that match a pattern #30

Open
raine opened this issue Feb 23, 2015 · 2 comments
Open

[FR] Apply replace only on lines that match a pattern #30

raine opened this issue Feb 23, 2015 · 2 comments

Comments

@raine
Copy link

raine commented Feb 23, 2015

Something like:

-l, --only-lines=RE           apply replace only on lines that match a pattern

So that you can easily scope your search-and-replace to only apply on certain lines if you're replacing a common phrase.

@piranha
Copy link
Owner

piranha commented Feb 23, 2015

I like the idea! Not sure if I'll have time to work on that soon, so pull requests are very much appreciated. :)

@raine
Copy link
Author

raine commented Feb 24, 2015

Any takers?

I might take a stab at this when I have time to learn Go at the same time.

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