Corning Community College
CSCS1730 UNIX/Linux Fundamentals
~~TOC~~
To employ your growing shell script abilities in calculating a user's time spent online (on lab46) for the semester.
I would like you to write a script that:
Example output may look something like:
lab46:~/src/unix/timeonline$ ./timeonline jbob error: no such user 'jbob' exiting ... lab46:~/src/unix/timeonline$ ./timeonline jsmith12 Aug|**** (37) Sep|****** (61) Oct|******* (73) Nov|******* (74) Dec|** (17) Aug: 0 days, 14 hours, 31 minutes Sep: 2 days, 3 hours, 17 minutes Oct: 2 days, 5 hours, 58 minutes Nov: 3 days, 1 hour, 47 minutes Dec: 0 days, 5 hours, 32 minutes Total: 8 days, 7 hours, 5 minutes
Submission criteria are as follows: