perl
$ perl -e "@a=(10)x4; $,=' '; print @a" 10 10 10 10
bash
$ a=($(printf "10 %.0s" {0..3})) $ echo ${a[*]} 10 10 10 10
Doing this again (I forgot I already did it!):
Back to HomePage