a bash commands outputs this:
Runtime Name: vmhba2:C0:T3:L14
Group State: active
Runtime Name: vmhba3:C0:T0:L14
Group State: active unoptimized
Runtime Name: vmhba2:C0:T1:L14
Group State: active unoptimized
Runtime Name: vmhba3:C0:T3:L14
Group State: active
Runtime Name: vmhba2:C0:T2:L14
Group State: active
I'd like to pipe it to something to make it look like this:
Runtime Name: vmhba2:C0:T1:L14 Group State: active
Runtime Name: vmhba3:C0:T3:L14 Group State: active unoptimized
Runtime Name: vmhba2:C0:T2:L14 Group State: active
[...]
i.e. remove every other newline
I tried ... |tr "\nGroup" " " but it removed all newlines and ate up some other letters as well. thanks
tris entirely character based: you asked tr to remove newlines and all 'G', 'r', 'o', 'u', and 'p'. – glenn jackman Mar 30 '12 at 01:01\n\n, or both? – smci Feb 10 '20 at 23:18