From 2b509ca9578194e44bd7bd08385cfb1e4e3e3f16 Mon Sep 17 00:00:00 2001 From: paulena Date: Sun, 22 Dec 2013 19:20:53 +0100 Subject: [PATCH] Update test_array.sh --- Labb6/test_array.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Labb6/test_array.sh b/Labb6/test_array.sh index 44ff448..0fed4ac 100755 --- a/Labb6/test_array.sh +++ b/Labb6/test_array.sh @@ -4,16 +4,8 @@ # LX13 # Just testing arrays -Content=`ls` - -Nr=0 - -for i in $Content; do - Word[$Nr]=$i - ((Nr++)) -done - -echo ${Word[@]} +Content=($(ls)) +echo Content[@]} exit 0