DOWNLOAD our comprehensive ksh array shell script that demonstrates how to script the following shell array operations and more:

- create/define a ksh array
- assign values to a ksh array within a for loop, a while loop, or outside of a shell looping construct
- determine array size and access array elements (values) using multiple methods
- load the contents of disk files into ksh arrays
- clear the contents of a ksh array

This script provides you with ksh array syntax examples and logic that you can incorporate into your own scripts.

Learn more >>



From the Author of this Tip:

I sincerely hope this tip provided you with the information you were looking for and more. If you have any follow-up questions related to this topic, feel free to email me directly.

If you need an excellent reference book on shell scripting, I highly recommend The New KornShell Command And Programming Language (2nd Edition). This book has been an invaluable resource to me for many years now, and is a must-have for your desk if you use the Korn shell regularly or write/maintain Korn shell scripts.

You may also benefit from studying one of our popular online UNIX/Linux courses...

UNIX and Linux Operating System Fundamentals

Korn Shell Scripting

Perl Programming

Past students really liked being able to study from work or home at a time that is convenient for them, and also practicing on a real server in our Internet Lab.

Thanks for reading,
Joel P.
LiveFire Labs - Online UNIX and Linux Training with Hands-on Internet Lab
April 2013

See more tips at...

LiveFire Labs' UNIX Tip, Trick or Shell Script Archive


If you are serious about learning UNIX then keep reading.

When you had to learn a new skill or technology in the past, what was the best way to get started?

If you are like most people, it was by practicing the concepts instead of just reading about them in a book or training manual.

You may be wondering if this approach is even possible with online courses since most e-Learning training options only provide students with material to read or a video to watch.

LiveFire Labs' innovative hands-on training model makes it possible by...

Read more...