Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. num=0
  4. find . -type f -print0 | while IFS= read -r -d '' myfile; do
  5. a=$(cat $myfile | wc -l)
  6. num=$(( $num + $a ))
  7. done
  8.  
  9. echo $num
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement