Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- findFiles()
- {
- echo $1
- for object in "$1"/*
- do
- if test -f "$object"
- then
- echo -n " ${object##*/} "
- echo `stat -c%b $object`
- fi
- done
- for object in "$1"/*
- do
- if test -d $object
- then
- findFiles $object
- fi
- done
- }
- if [ $# -eq 1 ]
- then
- if test -d $1
- then
- findFiles $1
- else echo "There is no directory with this name"
- fi
- else echo "Args count must be equal to 1"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement