[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] joining columns in csv files



On Wed, 15 Nov 2000, fergal daly wrote:

> Here's a problem that occurred on a list I'm on. Someone has a csv file
> with 8 columns and they want to merge colums 4, 5, 6 and 7. So 
> 
> 1,2,3,4,5,6,7,8,9 => 1,2,3,4567,8,9

Assuming you meant 9 columns instead of 8:

    perl -054pe'abs$.%8-5<2&&chop'

-- 
Tim Gim Yee
tgy@chocobo.org








==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe