1 2 3 4 5 6 7 8 9
#!/bin/bash GLOBIGNORE=. ( for i in *; do a=$(find "$i" -xdev | wc -l) printf "%s" "${a%\n}" printf " - %s\n" "$i" done ) | sort -n