Code clean-up & use "egrep" instead of "grep -P"