如何将'number:number'的所有文本放到与前面的'number:number'相同的行上?sed/awk - 将所有文本放在与前面的数字相同的行上
10:15
text line one
text line two
text no pattern
11:12
random text
text is random
totally random
could be four lines
could be five
应该再成为
10:15 text line one text line two text no pattern
11:12 random text text is random totally random could be four lines could be five
文本是否会有任何数字? – VM17
不,它只会是文本或东西线逗号和停止 – user1776732
让我知道我的答案是否适合你。 – VM17