Loop through an array of strings in Bash?
Asked 07 September, 2021
Viewed 3.1K times
  • 61
Votes

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

20 Answer