日期:2014-05-16 浏览次数:20766 次
#! /bin/bash cd /home/aa #aa 目录下有Desktop 和Music两个路径 DIR=("Desktop" "Music") CMD="cd ${DIR[0]}" eval $CMD
find /home/aa -type d ls /home/aa -F | grep "/" ll /home/aa | grep "^d" for ff in *; do if [ -d "$ff" ]; then echo $ff; fi; done