simplify calls to awk/sed