154Re: Requiring files to end with a newline
- Jan 9, 2008--- In SubEthaEdit@yahoogroups.com, Cole Tierney <colet@...> wrote:
>Sure, there are other ways, as well; that's not the hard part. It's the "filter through ...
> At 9:09 AM +0000 1/9/08, michael_j_barber wrote:
> >I believe you have misread me. In the Format menu, you can set the
> >line endings to be carriage returns, line feeds, or both. However,
> >the file itself should end with a line feed, which is not enforced
> >by setting "Use Unix/Mac OS X Line Endings (LF)". I'm looking for a
> >way to require that.
> If you can filter through sed somehow, then the following should
> guarantee that the file ends with a line feed:
> sed -e '$s/\(.*\)/\1/'
somehow," as you note, that is the problem.
- << Previous post in topic Next post in topic >>