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 [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to