Hi,
S Mathias wrote:
$ ASDF=hello; a=0; a=$(( 70 - $(echo $ASDF | awk '{print length}') )); echo "$a
$ASDF"$(for i in {1..$a}; do printf "."; done)
65 hello.
$
Why doesn't it print:
65 hello.................................................................
What am i missing?
Don't know, but the following works:
ASDF=hello; a=0; a=$(( 70 - $(echo $ASDF | awk '{print length}') )) &&
echo -n "$a $ASDF";for i in {`seq 1 1 $a`}; do printf '.'; done;echo
Cheers
--
Kind Regards
AndrewM
Andrew McGlashan
Broadband Solutions now including VoIP
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d213691.6070...@affinityvision.com.au