I need to make a bash program that will print the number of times and how much time users have been logged in during a certain time period(two dates given by command line agruments - ./login.sh 27/04 06/05).
The result must look something like this:
username | no. of times this user has been loged in | how much time this user has been logged in(days hours:minutes)
johnk 2x 0 days 2:46
deanb 4x 0 days 11:42
lukas 2x 0 days 1:58
peterp 3x 1 days 18:41
Any help would be appreciated. Thank you