Librenix  
(Show all Scripting articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Scripting: Bash Array Tutorial

Up
vote
Down

An excellent introduction to bash arrays including 15 examples...
$ cat arraymanip.sh
#! /bin/bash
Unix[0]='Debian'
Unix[1]='Red hat'
Unix[2]='Ubuntu'
Unix[3]='Suse'

echo ${Unix[1]}

$./arraymanip.sh
Red hat
 read more | score:9266 | -Ray, June 7, 2010
More Programming articles...

Buy Art Online with a Free Return Policy

Selected articles

Apple DIY Repair

Librenix T-Shirts and Coffee Mugs!

How to install Ubuntu Linux on the decTOP SFF computer

Space Tyrant: A threaded C game project: First Code

Space Tyrant: A threaded game server project in C

Programming Language Tradeoffs: 3GL vs 4GL

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin