Dec-21-2017, 05:48 PM
Personally, I'd look at sed or awk. They were made for exactly this kind of project. It sounds like a one-liner, to be honest.
Python is very capable of performing this. It'd be only a couple of lines of code. It would run significantly slower, however.
If performance is important, sed or awk. If not, Python is fine.
Python is very capable of performing this. It'd be only a couple of lines of code. It would run significantly slower, however.
If performance is important, sed or awk. If not, Python is fine.