Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- num=0
- find . -type f -print0 | while IFS= read -r -d '' myfile; do
- a=$(cat $myfile | wc -l)
- num=$(( $num + $a ))
- done
- echo $num
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement