Re: rs in debian
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
> Here's a Ruby script. You will need to apt-get install ruby to use it if
> Ruby is not already installed. (I did it in awk as well, but the Ruby
> solution is much easier to read.)
thanks a lot. however, i'd be interested to see your solution in awk as well
>
> #!/usr/bin/env ruby
>
> dataset = ARGF.inject([]) do |arr,line|
> arr << line.scan(/\w/).inject([]) do |row,word|
> row << word
> end
> end
> print dataset.transpose.map! { |row| row.join("\t") }.join("\n")
> puts ""
>
> } thanks,
> } Lubos
> --Greg
>
>
- --
Lubos
_@_"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iD8DBQFEYdwu5EqL/d2IfcARA+hCAJ4lMgjD0AKYLfLkyWqbZmngsUVpJACfT8aW
OWz2SZASbZLyf8b/idB/8vs=
=IfcY
-----END PGP SIGNATURE-----
Reply to: