How to replace the content of a specific column with awk?
You can do like this:
awk '$35=$35"$"'
There are probably more efficient ways to do this. With that caveat:
awk '{$35 = $35"$"; print}' infile > outfile
To reserve the original Field-Seprator, I did this. The column I wanted to blank-out was number $12.
awk -F"\t" '{OFS=FS}{ $12="" ; print }' infile.txt > outfile.txt
With gawk -i
, if you have it,you can edit the file in place.