Einstein47
Programmer
I am writing a script to report all the users and the last time they logged in. I am using the lsuser command and have the following:
The problem is the time is being displayed as a long int. Here is a sample output:
I think I should use the date command, but the syntax excapes me. Any suggestions?
Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
Code:
lsuser -c -a gecos time_last_login | egrep -v "^#" | tr ":" "\011"
The problem is the time is being displayed as a long int. Here is a sample output:
Code:
johnd John Doe 1018373874
I think I should use the date command, but the syntax excapes me. Any suggestions?
Einstein47
(Love is like PI - natural, irrational, endless, and very important.)