#!/bin/sh # 已经用python实现,暂不用 cd /home/twtech/github/python/crawl-mrdx/data list_alldir(){ for file in `ls -a $1` do if [ x"$file" != x"." -a x"$file" != x".." ];then if [ -d "$1/$file" ];then echo "$1/$file" list_alldir "$1/$file" fi fi done } list_alldir ./test