[Tutor] Python: 27 times faster than bash

Sean Carolan scarolan at gmail.com
Thu Oct 28 21:34:12 CEST 2010

I rewrote a bash script that gathers data from a bunch of text files.
The script uses grep, sed, and awk to parse the data and takes around
5.5 seconds to run.  After rewriting the script in python, it now
takes a little over 0.2 seconds to run.  Thanks to those of you who
helped me with some questions on proper syntax.

More information about the Tutor mailing list