GÜNGÖR BUDAK

Bioinformatics Analyst at Seven Bridges & PhD Student at METU

Replace Entire Column with a Number in Bash

Use below awk one-liner to replace all values in a column (5th column in example) with a value (1 in example)

awk ’{$5=1} {print}’ filename > filename.replaced