not optimal at all, but easy to read all in one
Code:
IFS=`echo -en "\n\b"`;for dir in $(find ./ -type d -maxdepth 1); do ls -a $dir | wc -l | xargs -i echo {} $dir;done | sort -n | tail -n1
as for using your file, if the number is the first column, then just use 'sort -n'. If it is the last one, then use
Code:
awk '{printf $NF;for (i=1;i<=NF;i++){printf $i};printf "\n"}' < myfile.txt | sort -n | tail -n1 #untested
to put the number column back in the first position. You can also use ark or perl for the whole thing too. There is a million way to do this, thinking longer about it, I probably could come up with something a lot better
EDIT: ls -> ls -a