Re: fixed-size records



gioparl@xxxxxxxxx wrote:
hello!

I have some files with fixed-size records

george jenny lina

I want to convert to

george ,jenny ,lina

how can do it?sed&awk??any help?

thanks!

p.s. it's spaces between fields,not tabs.

ruby -ne 'puts ([14,14].map{|n| $_.slice!(0,n)} << $_).join(",")' myfile

.