shithub: rc

ref: e0207cce6bc4ac7b8a9d4afbc9e7751e87dc34fe
dir: /graveyard/hdup/

View raw version
#!/bin/rc
awk '
{
	if(a[n] != $1){
		n++
		a[n] = $1
		a[n,1] = 0
		s[$1] = $2
	}else{
		s[$1] = s[$1] " " $2
		a[n,1] = 1
	}
}
END{
	for(i=1; i<n; i++){
		if(a[i,1] == 1)
			print s[a[i]]
	}
}
' $*