Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a file that was previously formatted with word wrap such that it has a newline at a certain row length, like this:
`Thank you, it's a very interesting dance to watch,' said
Alice, feeling very glad that it was over at last: `and I do so
like that curious song about the whiting!'
`Oh, as to the whiting,' said the Mock Turtle, `they--you've
seen them, of course?'
`Yes,' said Alice, `I've often seen them at dinn--' she
checked herself hastily.
`I don't know where Dinn may be,' said the Mock Turtle, `but
if you've seen them so often, of course you know what they're
`I believe so,' Alice replied thoughtfully. `They have their
tails in their mouths--and they're all over crumbs.'
`You're wrong about the crumbs,' said the Mock Turtle:
`crumbs would all wash off in the sea. But they HAVE their tails
in their mouths; and the reason is--' here the Mock Turtle
yawned and shut his eyes.--`Tell her about the reason and all
that,' he said to the Gryphon.
`The reason is,' said the Gryphon, `that they WOULD go with
the lobsters to the dance. So they got thrown out to sea. So
they had to fall a long way. So they got their tails fast in
their mouths. So they couldn't get them out again. That's all.'
Is there a way to use sed, or another editor to automatically remove this newline so that each paragraph is on it's own line?