Xref: utzoo comp.unix.wizards:18010 comp.unix.questions:16162 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!pacbell!att!cbnewsh!wcs From: wcs@cbnewsh.ATT.COM (Bill Stewart 201-949-0705 ho95c.att.com!wcs) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Joining Lines in SED ? Message-ID: <3559@cbnewsh.ATT.COM> Date: 5 Sep 89 16:44:12 GMT Reply-To: wcs@cbnewsh.ATT.COM (Bill Stewart 201-949-0705 ho95c.att.com!wcs) Distribution: na Organization: Conspiracy? What conspiracy? Lines: 15 A few months back there was a discussion of things you could do with sed, such as crunching multiple newlines. Does anyone know how to join lines using sed? I've played around with the hold-space buffer, and with 'y', but nothing's worked for me. (I've also tried using ed/ex/vi scripts, but the file I've been hacking is too large for this to work, and bfs doesn't appear to have join. I could stoop to using awk, but sed looks like about the right tool, and not all my machines have samsed.) Thanks; Bill -- # Bill Stewart, AT&T Bell Labs 4M312 Holmdel NJ 201-949-0705 ho95c.att.com!wcs # often found at 201-271-4712 tarpon.att.com!wcs Somerset CP3-4C423 fax469-1355 # Extremism in Defense of Liberty is No Substitute for Vice.