replace awk with simplified command