1753842 Members
7741 Online
108806 Solutions
New Discussion юеВ

Help me format Output

 
Soujanya
Valued Contributor

Help me format Output

Hi All,

Observe a few lines of the output of the 'last' command which displays information on every login session of every user. The last field shows the usage in hours: minutes for that session:-

henry pts/5 pcl34.pdsit .becs Tue Sep 16 15:lO - 18:08 (02:57)
romeo pts/7 pcl26.pdsit.becs Tue Sep 16 16:52 - 17:14 (00:22)
juliet pts/2 pcl27.pdsit.becs Tue Sep 16 11:53 - 13:09 (01:15)
romeo ptsl2 pcl26.pdsit.becs Mon Sep 15 12:17 - 12:40 (00:22)
root console :O Sat Feb 23 07:54 - 08:23 (00:28)
henry pts/4 pcl34.pdsit.becs Sat Sep 6 20:49 - 20:59 (00:lO)


How do I achieve this kind of Output ..

Any Help is much appreciated :)

Thanks in Advance
Soujanya.R
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: Help me format Output

I don't understand the kind of output that you want to achieve.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Atul Gautam
Valued Contributor

Re: Help me format Output

Soujanya,

Can you please explain as to what kind of output are you looking for......???





Atul