bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fold -s leaves shameful wasted blanks at end of lines


From: Dan Jacobson
Subject: Re: fold -s leaves shameful wasted blanks at end of lines
Date: Sun, 10 Aug 2003 07:59:45 +0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

>>>>> "Jim" == Jim Meyering <address@hidden> writes:

Jim> Dan Jacobson <address@hidden> wrote:
>> fold -s leaves shameful wasted blanks at end of lines:
Jim> ...
>> Therefore there needs to be another switch to do away with them.

Jim> Yes.  It looks like POSIX requires that.

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

Jim> How about piping the result through a filter like this?

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

OK, warn people thusly on the man page and I'll let you off the hook.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]