MAX 22 Points

(3 points)
Write a script that prints user on your system using more than N megabytes  of disk space.  'N' is supplied on the command line.  Remember that command line arguments are things like $1, $2 and $@.  
        Example:
                hogs 20


(3 points)
Write a script that prints all processes using more than 30 megabytes of RAM or more than 20% of the CPU.  


(4 points)
Write a shell script that prints the list of people who are active on the host.  A person is active if their idle time is less than one minute.  
Hint:
    "w" prints a list of everyone logged on and their idle time.
    "cut" can remove unneeded parts of a line
    You can read a file into a script one line at a time like this ...
        cat filename | while read a b c 
        do
                echo $a $b $c
        done

(One point per item)
Write me a script that takes a directory to start in.  It should print all files that meet at least on criteria, and tell me why.  It can list the same file more than once if need be.

One point each