Remove use of cat, awk, and ls. Much more portable and efficient.