8 diu - Display Inode usage, similar to du(1) for space usage
21 local prefix name entries recursive_num
pwd mynum parent_dev dev
34 if [ $CROSSDEV = deny
]
36 dev
=`stat -c %D "$name"`
38 if [ $CROSSDEV = allow
-o -z "$parent_dev" -o "$dev" = "$parent_dev" ]
44 show_num_of_entries
"$prefix$name" "$dev" "${entries[@]}"
45 recursive_num
=$
[${#entries[@]} + $NUM]
46 echo "$recursive_num $prefix$name"
47 mynum
=$
[$mynum + $recursive_num]
53 echo "$0: $name: not found" >&2
64 echo "$0: [options] [<directory> [...]]
66 -x, --one-file-system"
77 echo "$0: unknown option: $1" >&2
92 show_num_of_entries
'' '' "$@"