Is there a way to use bash to remove the last four columns for some input CSV file? The last four columns can have fields that vary in length from line to line so it is not
This might work for you (GNU sed):
sed -r 's/(,[^,]*){4}$//' file