Re: Epoch time konvertieren
Am Mon, 30 Jan 2017 14:22:55 +0100
schrieb Sebastian Pietsch <dsa@the-hawkes.de>:
> Aloha @all,
>
> > 0|/2/System/Library/CoreServices/ManagedClient.app/Contents/PlugIns/phd.profileDomainPlugin|187735|d/drwxr-xr-x|0|0|0|1472862950|1379204098|1383254649|1379204098
>
> awk -F "|" '{for(i=0; i<=NF-4; ++i) printf "%s|", $i} {for(i=0; i<=3;
> ++i) if(i<3) printf "%s|", strftime("%c",$NF-$i); else printf "%s\n",
> strftime("%c",$NF-$i)}' $LOGFILE
>
> nicht schön, aber selten. ;)
>
Selten, aber effizient!!
Reply to: