27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

# −−−−−−−−−<br />

# 1) Rewrite the array loading and printing functions<br />

# + in a more intuitive and elegant fashion.<br />

#<br />

# 2) Figure out how the array rotation functions work.<br />

# Hint: think about the implications of backwards−indexing an array.<br />

exit 0<br />

<strong>Advanced</strong> <strong>Bash−Scripting</strong> <strong>Guide</strong><br />

A two−dimensional array is essentially equivalent to a one−dimensional one, but with additional addressing<br />

modes for referencing and manipulating the individual elements by "row" and "column" position.<br />

For an even more elaborate example of simulating a two−dimensional array, see Example A−11.<br />

Chapter 26. Arrays 309

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!