Posted By


yoblob on 03/16/11

Tagged


Statistics


Viewed 593 times
Favorited by 0 user(s)

print whole bash array


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #! /bin/bash
  2. declare -a Unix=('Debian' 'Red hat' 'Red hat' 'Suse' 'Fedora');
  3. echo ${Unix[@]}

URL: http://www.thegeekstuff.com/2010/06/bash-array-tutorial/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.