perl -ibak -pe 's/plaintext\(odocstream &(.*?), OutputParams const &(.*?)\)/plaintext\(odocstringstream &\1, OutputParams const &\2, int max_length\)/' *.h *.cppHow much time did that save from doing it manually?
Blog Moved
This blog has been moved to a new URL. No further posts will be made to this blog.
Please click here to be taken to the corresponding post on the new blog. (This usually works. Some pages had their URLs changed. Sorry about those.)
Friday, March 8, 2013
I Love Perl
I posted about how to write simple Perl filters before, but I have to say that I just love doing this:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Comments welcome, but they are expected to be civil.
Please don't bother spamming me. I'm only going to delete it.