Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- func()
- {
- echo $5
- }
- if [ "$1" == "--help" ]; then
- echo This_file_create_new_file
- exit
- fi
- sum=0
- IFS=$(echo -en "\n\b")
- for line in $(ls -lR | grep " 1 ")
- do
- IFS=$(echo -en " \b")
- cur_size=$(func $line)
- IFS=$(echo -en "\n\b")
- sum=$(( $sum + $cur_size ))
- done
Advertisement
Add Comment
Please, Sign In to add comment