awk '{if ($1==1) print "A"; else if ($1==2) print "B"; else print "C"}' awk '{if ($1 ~ /*|=/) print $0; else print $2}'