Guest User

Untitled

a guest
Feb 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function scanFile() {
  2. for file in `ls $1`
  3. do
  4. if test -f $1"/"$file
  5. then
  6. echo $file 是文件
  7. else
  8. echo $file 是目录
  9. scanFile $1"/"$file
  10. fi
  11. done
  12. }
  13.  
  14. scanFile $1
Add Comment
Please, Sign In to add comment