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
In reply to Re^2: Epoch time conversion script
by hedkandi
in thread Epoch time conversion script
by hedkandi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |