#!/usr/bin/gawk -f BEGIN { while(getline x < F) { split(x, lines,","); cost=lines[1]/C att=lines[2]/A print cost","att; } close(F); }