remove new line and bring next line up
Doug Hunley
doug at hunley.homeip.net
Fri Apr 9 13:20:04 PDT 2010
On Fri, Apr 9, 2010 at 15:09, Vu Pham <vu at sivell.com> wrote:
> In vi, I use J at the end of a line to move the next line up next to the
> current line. How can I do it over many lines by one or two commands ?
>
> What I want is to convert
>
> a,
> b,
> c,
> d,
> e
>
> to a,b,c,d,e
>
>
> I tried
> :n,m s/control-VcontrolJ//g
> but it fails.
>
>
cat $file | tr -d '\n' > $file.new
--
Douglas J Hunley
doug at hunley.homeip.net : http://douglasjhunley.com : Twitter: @hunleyd
Obsessively opposed to the typical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/linux-users/attachments/20100409/e00d6066/attachment-0002.html
More information about the Linux-users
mailing list