use awk instead