this needs testing

Linux for blind general discussion blinux-list at
Tue Sep 26 11:26:39 UTC 2017

fmt -80 infile > outfile

Same thing, isn't it?

On Sep 25, 2017, at 5:49 PM, Linux for blind general discussion <blinux-list at> wrote:

I forgot three lines in earlier version.
This one uses fold to force creation of 80 character lines making it easier to edit rather than just leaving a single line in the file and that happens before editing of file can happen.

cut here.
#!/usr/bin/env bash
# file: - file with character limit script.
echo -c "character limit for file:"
echo -c "file name to edit"
truncate --size=$lim $ef
fold $ef >$ef.f
mv $ef.f $ef
echo "remember only change lines in $ef to stay inside character limits."
nano $ef
wc -c $ef


Blinux-list mailing list
Blinux-list at

More information about the Blinux-list mailing list