<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 04/09/2010 03:20 PM, Doug Hunley wrote:
<blockquote
cite="mid:h2w7284e2211004091320zeee50641l5663476e499c1403@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Fri, Apr 9, 2010 at 15:09, Vu Pham <span
dir="ltr"><<a moz-do-not-send="true" href="mailto:vu@sivell.com">vu@sivell.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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 ?<br>
<br>
What I want is to convert<br>
<br>
a,<br>
b,<br>
c,<br>
d,<br>
e<br>
<br>
to a,b,c,d,e<br>
<br>
<br>
I tried<br>
:n,m s/control-VcontrolJ//g<br>
but it fails.<br>
<br>
</blockquote>
<div><br>
cat $file | tr -d '\n' > $file.new <br>
</div>
</div>
<div style="margin: 2em 0pt;" name="sig_4c86bc8f53"></div>
</blockquote>
Thanks, Doug. My email was not clear. I just want to do that for some
lines only, not the whole file. Thanks, anyway.<br>
<br>
Vu<br>
</body>
</html>