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

Make option "--inplace" for sed -i like file editing #23

Open
GoogleCodeExporter opened this issue Oct 30, 2015 · 1 comment
Open

Make option "--inplace" for sed -i like file editing #23

GoogleCodeExporter opened this issue Oct 30, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I like pyp but the easiest way to edit file in place with pyp I found was:
cat f | pyp "p.replace('e', 'R')" | sponge f

But it's complicated and sponge isn't standard program (moreutils is not even 
in standard openSUSE's repositories).

So I propose to add option -i --inplace AND/OR add -o --output option that 
handles in place editing correctly. 

Original issue reported on code.google.com by [email protected] on 27 May 2014 at 3:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant