我有一個.txt(Mac OS X雪豹)文件,它有很多文字。在一段的末尾,有一個很難迴歸的結果,將下一段移到另一段。這是我想要做的內容到我的分貝,所以我想知道如果有反正我可以刪除硬回報一些問題?是否有某種我可以運行的腳本?我真的希望我不必經過並手動拿出艱難的回報。有沒有一個腳本,我可以運行刪除.txt文件中的所有硬(回車)返回?
總括來說,這裏是什麼樣子現在:
This is some text. Text is what this is.
And then this is the next paragraph that is on a different line.
而這正是我希望去:
This is some text. Text is what this is. And then this is the next paragraph that is on a different line.
對於所有幾千行我的.txt文件。
謝謝!
編輯:
我在我的txt文件處理的文本實際上是HTML:
<a href="/link/link/1"> <span class="text">1 </span> THis is where my text is</a><br/>
當我在終端上運行cat命令類似下面,只有第一個是存在的。其他一切都缺失...
它不應該只與第一個文件工作! – 2011-12-27 17:53:04