#!/usr/bin/env bash read -r new_task if (printf "%s" "$new_task" | grep -qE '[tT]eh'); then new_task=$(printf "%s" "$new_task" | sed -r 's/([tT])eh/\1he/g') echo "Auto-corrected 'teh' --> 'the'" fi printf "%s" "$new_task" exit 0