<div dir="ltr"><div>Well, LF "\n" always means end of line in a linux text file. vi/vim simply ignores CRs...<br><br></div><div>Perhaps this will work for you in vim:<br><br></div><div>:%s/.$// (delete the CR at the end of each line)<br><br></div><div> or :%s/^V^M//g <br><br></div><div>which says find all cntl-M (CR's) in a line and replace with a null strings<br><br></div><div>Note the the ^V is a control-V that will tell the command to except a control character as part of a pattern.<br><br></div><div>-- David <br></div><div><br> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 1, 2015 at 11:37 PM, Alex Carver <span dir="ltr"><<a href="mailto:agcarver+ale@acarver.net" target="_blank">agcarver+ale@acarver.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How do you propose to mark the end of a line when \r\n is the end of the<br>
line?<br>
<div class="HOEnZb"><div class="h5"><br>
On 2015-03-01 20:26, Terry wrote:<br>
> Is there a way to remove all the \r\n embedded in a txt file except the ones at the end of each line?<br>
><br>
> Thanks,<br>
><br>
> Terry Bailey<br>
><br>
><br>
> Sent from my iPad<br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br></div>