Python functions that mimic the behavior of the sed, grep, and awk utilities.