Loading ...
Sorry, an error occurred while loading the content.

154Re: Requiring files to end with a newline

Expand Messages
  • michael_j_barber
    Jan 9, 2008
      --- In SubEthaEdit@yahoogroups.com, Cole Tierney <colet@...> wrote:
      > 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/'

      Sure, there are other ways, as well; that's not the hard part. It's the "filter through ...
      somehow," as you note, that is the problem.
    • Show all 11 messages in this topic