this needs testing

Linux for blind general discussion blinux-list at redhat.com
Mon Sep 25 22:42:38 UTC 2017


#!/usr/bin/env bash
# file: fcl.sh - file with character limit script.
echo -c "character limit for file:"
read
lim=$REPLY
echo -c "file name to edit"
read
ef=$REPLY
truncate --size=$lim $ef
echo "remember only change lines in $ef to stay inside character limits."
nano $ef
wc -c $ef

-- 




More information about the Blinux-list mailing list