optimize catlines.sh and add exit on catlines.awk