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: === cut here ========================================== CHAPTER ONE THE WRONG DOOR This is a story about something that happened long ago when your grandfather was a child. It is a very important story because it shows how all the comings and goings between our own world and the land of Narnia first began. In those days Mr Sherlock Holmes was still living in Baker Street and the Bastables were looking for treasure in the Lewisham Road. In those days, if you were a boy you had to wear a stiff Eton collar every day, and schools were usually nastier than now. But meals were nicer; and as for sweets, I won't tell you how cheap and good they were, because it would only make your mouth water in vain. And in those days there lived in London a girl called Polly Plummer. She lived in one of a long row of houses which were all joined together. One morning she was out in the back garden when a boy scrambled up from the garden next door and put his face over the wall. Polly was very surprised because up till now there had never been any children in that house, but only Mr Ketterley and Miss Ketterley, a brother and sister, old bachelor and old maid, living together. So she looked up, full of curiosity. The face of the strange boy was very grubby. It could hardly have been grubbier if he had first rubbed his hands in the earth, and then had a good cry, and then dried his face with his hands. As a matter of fact, this was very nearly what he had been doing. === cut here ========================================== Jim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- You roll an 18 in Dex and see if you don't end up with a girlfriend =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- JimD Central FL, USA, Earth, Sol -- gentoo-user@gentoo.org mailing list