http://www.perlmonks.org?node_id=1014550


in reply to Re^2: selecting columns from a tab-separated-values file
in thread selecting columns from a tab-separated-values file

Yes sorry, I'd forgotten about the limitation of cut keeping the original field order (it's fast though!).

Given you need to do a bit of processing as well I think the post by Kenosis should get you well on the way.