dirs=`ls -l | grep "^d" | awk '// {print $8}'`; echo $dirs; foo=($dirs); echo $foo;