printf "%s\n" {1..10} It works because in printf, the format is re-used as necessary to consume all of the arguments.