[tpm] eliminating columns from tab delimited files

Andy Jack andy+lists at veracity.ca
Thu Apr 17 14:12:46 PDT 2008


On Thu, Apr 17, 2008 at 04:05:44PM -0400, Omid Gulban wrote:
> does anyone have a quick way of eliminating certain columns from a tab-delimited file.

Another command in the non-perl unix tools vibe, try 'cut':

cut -f1,3-6,9 < myfile > myfile2

grabs columns 1,3,4,5,6,9 from myfile and puts them in myfile2

Andy


More information about the toronto-pm mailing list