i want to print value of second column in next columns where value of first column is repeated using linux command : my sample file is:

$ cat diskcheck.out                                                
hxcsvc-a02 sd2

hxcslc-a01 sd23

hxcslc-a02 sd14

hxcslc-a02 sd17

hxcslc-a02 sd18

hxcslc-a02 sd19

hxcslc-a03 sd11

hxcslc-a07 sd3

hxcslc-a09 sd2


Expected Output:

hxcsvc-a02 sd2

hxcslc-a01 sd23

hxcslc-a02 sd14 sd17 sd18 sd19

hxcslc-a03 sd11

hxcslc-a07 sd3

hxcslc-a09 sd2