Search Results

Search: Posts Made By: kurumi
1,222
Posted By kurumi
$ ruby -ane...
$ ruby -ane 'BEGIN{h={}};(h[$F[0]]||=[])<<$F[1];END{h.each{|x,y|puts "#{x} #{y.join(" ")}"}}' file
fn1 12345 23456 22325
fn3 231513 123125

Create a hash, store first field as key and second...
Showing results 1 to 1 of 1

 

Featured Tech Videos

All times are GMT -4. The time now is 01:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy