What does the @ symbol represent in "${NAMES[@]}"?

QuestionsQuestions8 SkillsProBash Scripting LoopsSep, 14 2025
098

In the expression ${NAMES[@]}, the @ symbol refers to all elements of the NAMES array. It allows you to access each element in the array when used in a context that requires multiple values, such as when counting the number of elements or iterating through the array.

0 Comments

no data
Be the first to share your comment!