awk remove last character use awk length and substr functions...