variable in loop

S Mathias smathias1972 at yahoo.com
Sun Jan 2 22:27:18 UTC 2011


$ 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?


      




More information about the ubuntu-users mailing list