Perl in place replacement syntax
Posted in General on May 13th, 2009 by slacy – 1 CommentI always forget how to do this, so I’m writing it down:
perl -pi -e “s/foo/bar/g”
Is there a way to do this in Python and be as concise? That would be really nice, and would eliminate one more place where I end up using Perl and tearing my hair out every time.