* on the Tue, Jun 13, 2006 at 07:28:17AM +0100, David Morgan said: > On 22:46 Mon 12 Jun , JimD wrote: > > David Morgan wrote: > > > On 18:53 Mon 12 Jun , JimD wrote: > > >> Sweet. Thanks for the tips. I need to start using OOo more ;-) > > > > > > No need. > > > > > > sed -e :a -e '$!N;s/\n[^$]//;ta' -e 'p;D' filename > > > > Close. It is removing the first character of every paragraph. I am > > trying to digitize my book collection. For example, here is a test > > output from Narnia - The Magician's Nephew: > > Indeed - didn't my corrected version get through? I received it before I > received your reply anyway. > > sed -e :a -e '$!N;s/\n\([^$]\)/\1/;ta' -e 'p;D' filename
Almost perfect. It now joins the lines without removing the first character. However, There is now no space between the joined lines. For example: CHAPTER ONE THE WRONG DOOR becomes CHAPTER ONETHE WRONG DOOR I added space to the end of all lines, except blank lines and now it gets me pretty much what I was looking for. Thanks, Jim -- gentoo-user@gentoo.org mailing list