Advertisement
Heretiiik

Untitled

Sep 7th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1.  
  2. find . -name '*.h*' -or -name '*.c*' -exec wc -l {} \; | awk 'BEGIN{ total=0; } { total=total+$1; } END{ print total; }'
  3.  
  4. find . -name '*.h*' -or -name '*.c*' -exec wc -l {} \; | sort -n -k1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement