### Bash Array Example with Names Source: https://github.com/speedsheet/sheet-os-bash/blob/master/CONTRIBUTING.md Provides a practical example of using Bash arrays with names containing spaces, showing how to access the first element, iterate through all elements, and get the array length. This feature requires Bash 4.0+ and is not available in POSIX sh. ```bash names<>=("Alice Smith" "Bob Jones" "Carol Lee") echo "${names<>[0]}" <#># Alice Smith<> for name<> in "${names<>[@]}"; do echo "$name<>" done <#># Prints each name on separate line<> echo "${#names<>[@]}" <#># 3<> ``` -------------------------------- ### Bash Array Declaration and Access Source: https://github.com/speedsheet/sheet-os-bash/blob/master/CONTRIBUTING.md Demonstrates how to declare Bash arrays with values, including empty arrays, and how to access individual elements or all elements. Always quote array expansions to preserve elements with spaces. ```bash array<>=( value1<> value2<> value3<> ) empty<>()<> ``` ```bash "${array<>[index<>]}" <#># Single element (0-indexed)<> "${array<>[@]}" <#># All elements (separate words)<> "${array<>[*]}" <#># All elements (single word)<> "${#array<>[@]}" <#># Array length<> ``` -------------------------------- ### Stash Format Quick Reference Source: https://github.com/speedsheet/sheet-os-bash/blob/master/CONTRIBUTING.md A quick reference for the Stash markup language used in the project, showing basic formatting for headings, code blocks, inline code, bold text, and bullet points. ```stash # Heading Level 1 ## Heading Level 2 code_example<> inline_code<> bold text<> <*>Bullet point Another bullet<> ``` -------------------------------- ### Stash Format Key Elements Source: https://github.com/speedsheet/sheet-os-bash/blob/master/CONTRIBUTING.md Explains the key elements of the Stash markup language, including how to denote section headers, code blocks, inline code, list items, and comments. ```stash # Heading code<> code<> <*>item<> <#>comment<> ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.