Replace sed with awk