#! /bin/bash cp results.csv tmp.csv gawk 'BEGIN{FS=OFS=","}{print $1,$2,$3"_"$4"_"$5,$6,$7}' tmp.csv > results.csv rm tmp.csv