Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- RESULT=0
- for FILE in `ls $1`
- do
- if [ ! -d $FILE ]
- then
- RESULT=$(( $RESULT + `ls -l $1/$FILE | awk '{print $6}'` ))
- else
- RESULT=$(( $RESULT + `bash $0 $FILE` ))
- fi
- done
- echo $RESULT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement