tar.sh 397 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # 已经用python实现,暂不用
  3. cd /home/twtech/github/python/crawl-mrdx/data
  4. list_alldir(){
  5. for file in `ls -a $1`
  6. do
  7. if [ x"$file" != x"." -a x"$file" != x".." ];then
  8. if [ -d "$1/$file" ];then
  9. echo "$1/$file"
  10. list_alldir "$1/$file"
  11. fi
  12. fi
  13. done
  14. }
  15. list_alldir ./test