Date: Tue, 1 Sep 2009 18:57:55 +0000 From: "b. f." <bf1783@googlemail.com> To: freebsd-questions@FreeBSD.org Cc: pschmehl_lists@tx.rr.com Subject: Re: remove newlines from a file Message-ID: <d873d5be0909011157s76a87de9y53960c77567703fc@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Paul Schmehl wrote: >I found a sed tutorial once that did this, but I can't seem to find it again. >I have a file with multiple lines, each of which contains a single ip followed >by a /32 and a comma. I want to combine all those lines into a single line by >removing all the newline characters at the end of each line. > >What's the best/most efficient way of doing that in a shell? paste(1)? b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be0909011157s76a87de9y53960c77567703fc>