make pipeline work in one shot

replace grep | cut with one awk command to reduce complexity in pipeline