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.