fixing awk syntax error