• 0
Votes
name
name Punditsdkoslkdosdkoskdo

Loop through an array of strings in Bash?

988 down vote favorite

226

I want to write a script that loops through 15 strings (array possibly?) Is that possible?

Something like:

for databaseName in listOfNames
then
  # Do something
end