improve performance and readability by using awk instead of pipes and simple commands