- 論壇徽章:
- 0
|
本帖最后由 lnzfm 于 2014-10-27 13:47 編輯
從網(wǎng)頁(yè)里復(fù)制下來(lái)的代碼經(jīng)常是帶著行號(hào),而且多行合并成了一行,例子如下:
1. this is line1 2. this is line2 3. this is line3 4. this is line4 5. this is line5 6. this is line6 7. this is line7 8. this is line8 9. this is line9 10.this is line10
求各位兄弟姐妹幫忙將連續(xù)數(shù)字和點(diǎn)的字符串用sed替換成換行符
1. this is line1
2. this is line2
3. this is line3
4. this is line4
不會(huì)用sed,真拙急啊
很抱歉,上面我發(fā)的預(yù)期結(jié)果寫(xiě)錯(cuò)了,我重新編輯了貼子,希望得到的輸出結(jié)果以下面結(jié)果為準(zhǔn):
this is line1
this is line2
this is line3
this is line4
謝謝,參與回復(fù)帖子的同學(xué),請(qǐng)繼續(xù) |
|