bug-coreutils
[Top][All Lists]
Advanced

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

fold -s: add option for variable spaces at beginning


From: Dan Jacobson
Subject: fold -s: add option for variable spaces at beginning
Date: Wed, 07 Sep 2005 04:20:18 +0800

In case fold -s hasn't been enhanced since 5.2.1:
Unhappy with wasted spaces at the end of each line, and no variable
choice of how many spaces at the beginning of each continuation line,
$ tr \\n ' ' </etc/motd|fold -s|cat -e
$ tr \\n ' ' </etc/motd|fold -s|
perl -nwe 'BEGIN{$/=""}s/ \n/\n  /g;print'|cat -e
Here you see I decided to put two spaces at the beginning of each
continuation line, and none at the end.

Anyway, fold -s should have more option choices to enable this.




reply via email to

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