AVAILABLEDIR=("${AVAILABLEDIR[@]}" "$(ls $LOC -AFl | sed "1 d" | grep "/$" | awk '{ print $9,$10 }')")
I'm trying to create an array using this command, however when it adds objects to the array, it adds $9 and $10 seperately, is there a way to tell the array to have both of these arguments joined? This is what I want:
[Directory 1/] [Directory 2/] [Directory 3/]
instead of
[Directory] [1/] [Directory] [2/] [Directory] [3/]
Thank you for your help