shell 1 2 3 4 5 6 #!/bin/bash LOCATION=${1} DIR_LIST=$(ls -l ${LOCATION} | awk '/^d/ {print $NF}') echo ${DIR_LIST[*]}
感谢您的耐心阅读!来选个表情,或者留个评论吧!