slimming main dir content, switching gawk to awk