Looping through list problem

so in bash script i’m trying to loop through a list of variables

first_greeting=“Nice to meet you!”
later_greeting=“How are you?”

words=( $first_greeting $later_greeting ) # adding variables to a list

for “i” in “${words[@]}”; do
echo i
done

when i run the script it outputs every word in the list like so:

Nice
to
meet
you!
How
are
you?

how do i fix this so it prints out each line not word by word

1 Like

Tbh I don’t know much about bash scripts, but this looks like it might have something to do with that [@] operator?
What is its purpose, per your instructional Materials?