I would like to create a file with every combination of letters out to 10 characters.
For example, the first few lines
a
b
c
then eventually
aa
ab
ac
then eventually
aaa
aab
aac
and so on. Finally, it will end with
zzzzzzzzzz
This will create 26^10 lines. Is there a simple way to create a file like this with some kind of loop?
Thanks in advance.
Related Posts with loop to increment a string variable
Multiplying a variable to generate anotherHi, for a project I have a variable for gross weekly earnings. I want to multiply this by 52 to crea…
Georeferencing a large number of addresses with StataHi everyone, my research project needs to obtain geographical coordinates from a large number of ad…
create new categorical variable with different cutoffs depedent on condition (sex)Dear forum, I have a dataset of 407 participants, i am trying to categorise them by their hip to wa…
Quantille regressionDear colleagues, I want to analyze the evolution of incomes by social class in several surveys. I ha…
Creating a large Dummy Variable tableGood afternoon, I am working with a dataset that looks at different funding structures for subsidiz…
Subscribe to:
Post Comments (Atom)
0 Response to loop to increment a string variable
Post a Comment