in reply to Re: Epoch time conversion script
in thread Epoch time conversion script
I am trying to convert the epoch time to local time. I can use a one-liner that does the job but it's tedious to do it manually with many users on the system
cat /var/log/user_history/32adm_bash_history | while read line ; do i +f [[ $line =~ '^#' ]]; then date -d "@$(echo $line | cut -c2-)"; els +e echo $line ; fi; done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Epoch time conversion script
by Anonymous Monk on Mar 28, 2012 at 07:15 UTC | |
by hedkandi (Initiate) on Mar 28, 2012 at 08:59 UTC | |
by lidden (Curate) on Mar 28, 2012 at 10:36 UTC | |
by hedkandi (Initiate) on Apr 05, 2012 at 06:53 UTC | |
by Anonymous Monk on Apr 05, 2012 at 07:05 UTC | |
| |
by NetWallah (Canon) on Mar 28, 2012 at 17:34 UTC | |
by hedkandi (Initiate) on Apr 05, 2012 at 07:05 UTC | |
by hedkandi (Initiate) on Apr 06, 2012 at 03:33 UTC |