HomeUsesLinksSnippetsProjectsContact me
InstagramTikTokYouTubeTwitterTwitchGitHubLinkedIn
HomeUsesLinksSnippetsProjectsContact me
26 January 2017

Bash array loop

#!/bin/bash

ARRAY_LIST=('apple' 'banana' 'orange')

for fruit in "${ARRAY_LIST[@]}"
do
    echo $fruit
done

Output

apple
banana
orange

How to check CentOS version.bash_profile

Pages

  • Home
  • Uses
  • Links
  • Snippets
  • Projects
  • Contact me

More

  • PHP Serialize Online
  • PHP Unserialize Online
  • PHP Playground Online
  • WP Admin Online
  • Dedicated WordPress maintenance plans
  • IP Address Check
  • Sitemap to llms.txt
  • By Human Not AI Badges

Created with ☕ by Michal Slepko and Rootscope