bug-coreutils
[Top][All Lists]
Advanced

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

fold -s leaves shameful wasted blanks at end of lines


From: Dan Jacobson
Subject: fold -s leaves shameful wasted blanks at end of lines
Date: Sat, 09 Aug 2003 12:27:16 +0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

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

$ deborphan|xargs|fold -s|awk '/ $/{$0=$0"<--"};1'
libgal19 gstreamer-vorbis libaiksaurusgtk0 libcapplet0 libcapplet1 libident <--
libmetakit1 zlibc libcdk4 libmimelib1 libmagick5 libole2-0 libzipios++0 <--
libid3-3.7-13 libgtop1 libwraster2 libqt2-mt libfltk1 libgmime0 libc-client2001 
<--
gstreamer-audiofile tix41 libghttp1 tclx8.3 libarts1-audiofile libjack0.38.0-0 
<--
libflash0 libsigc++0 libarts1-xine libpgsql2 libnautilus2-2 libgdbmg1

Therefore there needs to be another switch to do away with them.
Or you could do away with them unilaterally if it won't break users
programs.  Then there's
$ perl -le 'print "a". " " x 100 ."b"'|fold -s
and on and on.  Uh oh... looks complex. See you later.




reply via email to

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