13
May
Perl in place replacement syntax
I 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.
Continue Reading →