最佳答案
array=${ls -d */}
echo ${array[@]}
I have three directories: ww
ee
qq
. I want them in an array and then print the array.