String operation on selected lines with AWK