gawk 'BEGIN{FS=OFS=","} NR==1 {for(I=1;I<=NF;I++) $I= "$" $I $NF = "<" $NF } { print $0} ' $HOME/tmp/xomo-sa/xomo-sa.csv > $HOME/tmp/xomo-sa/tmp1 bore N=0.1 Pass=1 $HOME/tmp/xomo-sa/tmp1 Pass=2 $HOME/tmp/xomo-sa/tmp1 Pass=3 $HOME/tmp/xomo-sa/tmp1 > $HOME/tmp/xomo-sa/xomo-sa-ext.data rm -f tmp* cd $HOME/tmp/xomo-sa tar3 xomo-sa-ext > $HOME/tmp/xomo-sa/tar3-results-extended