Advertisement
uberdragon

filecount recursively all dirs in current dir

May 22nd, 2019
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. alias filecount=file_count
  2. file_count() {
  3.   for f in */; do
  4.     echo "$f $(sudo find $f -type f | wc -l)"
  5.   done
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement