Given: there are 40 columns in a record. I want to replace the 35th column so that the 35th column will be replaced with the content of the 35th column and a "$" symbol. What came to mind is something like:
awk '{print $1" "$2" "...$35"$ "$36...$40}'
It works but because it is infeasible when the number of column is as large as 10k. I need a better way to do this.
Best Answer
You can do like this: