I want to write a script that loops through 15 strings (array possibly?) Is that possible?
Something like:
for databaseName in listOfNames then # D
That is possible, of course.
for databaseName in a b c d e f; do # do something like: echo $databaseName done
See Bash Loops for, while and until for details.