Tuesday, July 5, 2022

Change Spesific Columns Value According to a condition


This changes 4th columns value to "none" if it is zero.

awk 'BEGIN{FS=OFS=";"} $4 == "0" ;{$4 = "none"; } {print $0}' $filename 

No comments: