Hi, i am still learning i want to make a simple shell script.
I wish to make a function that will receive 2 arguments (two dates) and will return
all users who logged in during that period, how many times and how long were
they logged in.
I wish to call my function this way: ./functionName 29/05 30/05
This would print out all users that were logged in during that period
how many times did they login and how long were they logged in.
Result would be maybe like: username 5x 0 days 12:43
How can i go about this, thanks in advance.
I have tried opening a notepad and writing something but i just
get confused on every step.
I am used to writing functions they way they are in C, Python, Java, PHP, Ruby
but here it seems its all sick and twisted.