Return

I need help with a bash script.

1 Name: Anonymous 2018-11-24 08:33
I need help with a bash script that utilizes a loop to create 100 files that are named passwordNUM.txt where NUM is a variable with the interval of {1..100}. these files must contain 30 characters of numbers and letters, upper and/or lower case, never any other special characters. https://i.imgur.com/CKUhsWA.png
2 Name: Anonymous 2018-11-24 10:24
Can the file content be random or something specified
3 Name: Anonymous 2018-11-24 13:27
>>2

It can be random, rather, it must be random.
4 Name: Anonymous 2018-11-24 16:31
Do these:
find out how to create a file with a specified number suffix filename
find out how to create 100 files (just some files)
find out how to create a file with specified content
combine all these and you have the answer
5 Name: Anonymous 2018-11-24 19:37
>>1
What part of Russia do you live in?
6 Name: Anonymous 2018-11-24 22:40
>>4
and the random passwords can be created by rolling a random number between 0 and 62 and converting it to a character between 0-Z. Do this 30 times, combine characters and you have a password, though it's not guaranteed it will always contain numbers and letters
7 Name: Anonymous 2018-11-24 23:14
>>6
just one more thing, you might want to implement this by creating an array (which i guess is possible when making bash files) and listing every possible password character option in it ARRAY=(0 1 2 3 ... a b c ... X Y Z)

then pick a random number between 0 and 62, and select a character from the array with that index number. ${ARRAY[2]} would give you '2', ${ARRAY[62]} would give 'Z'

i guess strings in bash could be just arrays of characters, so you could define the password like this: (pseudocode)

char[] password = new char[30];

random r;

for i=0; i<30; i++ {
r= random [0, 62]
password[i] = ARRAY[r];
}

then write the 'password' variable content inside the file
8 Name: Anonymous 2018-11-24 23:48
>>7
thank you very much anon.

Return
Name:
Leave this field blank: