Can someone please help me parse this output to show in total number of minutes?
Here's the command (which works as expected except for the formatting):
ps -eo pid,etime,command | grep some_process | grep -v grep | awk '{print $2}'
Output (in hours, minutes, seconds)
03:01:24
I need the output to look something like:
181.40
(3 hours, 1 minute, 24 seconds displayed as a real number)
Is this possible? Any suggestions are greatly appreciated.