I want to format text using
I have text looking like,
H1 (dxfault) H337 (Unxr) H1106 (hast) H1129 (h1129) H1370 (hlan1370)
I want to remove the letter
H and everything after the first space, and format numbers look like
I found two different
sed 'y/H/ /' #for removing H letter in front
sed 's/\s.*$//' #for removing everything after first break "space"
How can I combine these commands and add a comma after the numbers?