Dan Jacobson <[EMAIL PROTECTED]> wrote:
> fold -s leaves shameful wasted blanks at end of lines:
...
> Therefore there needs to be another switch to do away with them.

Yes.  It looks like POSIX requires that.

  # printf 'a b\n'|fold -w2 -s|cat -A
  a $
  b$

How about piping the result through a filter like this?

  perl -pe 's/[ \t]+$//'


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to