I have a table like the "input table" below and I want to keep the tab separation after the incremental operation to a specific cell in the second column (line with Paul, third shown, in example). I tried this comand awk 'BEGIN {FS="\t"} NR==675 {$2++}; {print $0}' table
, but the tab saparator of the edited line is being replaced by space, like shown in the "output table" below.
Input table:
... Watson 1 Carry 1 Paul 1 John 1 ...
Output table:
... Watson 1 Carry 1 Paul 2 John 1 ...