script

Write a script which for each directory given on standard input (in a separate line)
prints the user with the largest number of files in this directory.
Example:

$ thewinneris << STOP
> /etc
> /tmp
> /home/users/jakubo
> STOP
root
killertrashman
jakubo
Registered users can post here. Sign in or register to post.