Re: fixed-size records
- From: "William James" <w_a_x_man@xxxxxxxxx>
- Date: 10 Mar 2006 14:26:55 -0800
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
.
- References:
- fixed-size records
- From: gioparl
- fixed-size records
- Prev by Date: ncurses - change font size
- Next by Date: Re: Reintroducing fish, the friendly interactive shell
- Previous by thread: Re: fixed-size records
- Next by thread: How to control number of args piped to xargs?
- Index(es):