11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

# And then there was some test code<br />

ListArray() # ListArray Name<br />

{<br />

local -a Ta<br />

eval Ta=\( \"\$\{$1\[@\]\}\" \)<br />

echo<br />

echo "-*-*- List of Array -*-*-"<br />

echo "Size of array $1: ${#Ta[*]}"<br />

echo "Contents of array $1:"<br />

for (( i=0 ; i

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

Saved successfully!

Ooh no, something went wrong!