Dec-21-2017, 08:52 PM
If you need Python to be faster for this, I'd suggest giving PyPy a try. I would expect it to have comparable performance to awk and sed at that point. But yeah, if you need speed and awk and sed are simple enough, no need to complicate thingsĀ :)