Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

convert log file with unix timestamp

awk -F"[][]" '{cmd="date -d@" $2;cmd |getline $2; close(cmd)}1' infile

" Thu Oct 19 03:42:35 STD 2017  Auto-save of retention data completed successfully.",
" Thu Oct 19 04:42:35 STD 2017  Auto-save of retention data completed successfully.",
" Thu Oct 19 05:42:35 STD 2017  Auto-save of retention data completed successfully.",
" Thu Oct 19 06:42:35 STD 2017  Auto-save of retention data completed successfully.",
" Thu Oct 19 07:42:35 STD 2017  Auto-save of retention data completed successfully."
Comment

PREVIOUS NEXT
Code Example
Shell :: File "/tmp/pip-install-6MDHCx/sentence-transformers/setup.py", line 3, in 
Shell :: virtuaboxl with kubernetes 
Shell :: <bits/types/__fpos_t.h no such file or directory 
Shell :: cant download tree ubuntu windows 10 
Shell :: mikrotik address list log into file 
Shell :: windows mtesploit kali linux 
Shell :: is wanted agency legit 
Shell :: cloudbase-init windows 10 cloudbase-init-unattend.conf 
Shell :: lancer un serveur express 
Shell :: GHDB categories 
Shell :: criar variáveis no mac 
Shell :: git remove last merge commit 
Shell :: can you make a personal assistant for linux 
Shell :: fslstats volume 
Shell :: windows launch node with multiple environment variables 
Shell :: vim cd cant use variables 
Shell :: How do I tell which command has the longest manual on my system? 
Shell :: install onboard 
Shell :: disable assertions python 
Shell :: is my system 64 or 32 bit linmux 
Shell :: fedora insall kdenlive 
Shell :: -d flag linux if 
Shell :: use -i 
Shell :: vmware mukesh003 
Shell :: how to uninstall htcondor 
Shell :: router interface down cisco 
Shell :: python3 GIVINGSTORM.py -n Windows-Upgrade -p b64 encoded payload -c amazon.com/c2/domain HTA Example 
Shell :: how to clear/delete/remove/erase/wipe/forget shell traps 
Shell :: vim command to select all text in file 
Shell :: ubuntu screen record stopped itself 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =