[CentOS] variable in loop
S Mathias
smathias1972 at yahoo.comSun Jan 2 22:27:16 UTC 2011
- Previous message: [CentOS] centos6 filesystem size limit
- Next message: [CentOS] variable in loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$ 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?
- Previous message: [CentOS] centos6 filesystem size limit
- Next message: [CentOS] variable in loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list