On Sun, 2011-01-02 at 14:27 -0800, 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.................................................................

You wrote:  for i in {1..$a}
I think you mean: for ((i=1;i<$a;i++))

Cheers.
----------------------------------------------
Rodolfo Alcazar Portillo - nosp...@gmail.com
otbits.blogspot.com / counter.li.org: #367962
----------------------------------------------
"Früher oder später emulieren wir euch."
- linux.de


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to