# use negnum.data BEGIN { OFS="\t"; } { for (i = 1; i <= NF; i = i + 1) if ($i < 0) $i = -$i; print; }