A quick google for "sed remove newline" returns, as the very first hit, the page:
http://snow.nl/dist/htmlc/ch13s04.html - look for the header "The Pattern Buffer" There's a script there that will get you on your way. On 03/10/2007, david <[EMAIL PROTECTED]> wrote: > I want to edit a multi line file as if it were all one line > > In other words, treat \n like any other character, and specifically > doing global find and replace. > > I know there are various hex editors, but they are all pretty clunky as > far as I can see, and none seem to be able to do that from command line. > > Is there a shell script way to do it? > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > > -- There is nothing more worthy of contempt than a man who quotes himself - Zhasper, 2004 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
