|
From: | Jim Meyering |
Subject: | Re: fold -s leaves shameful wasted blanks at end of lines |
Date: | Sat, 09 Aug 2003 23:27:13 +0200 |
Dan Jacobson <address@hidden> 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]+$//'
[Prev in Thread] | Current Thread | [Next in Thread] |