Extracted echo to separate functions.

Unified checking of AWK.