Sample Header Ad - 728x90

Convert/replace time from epoch milliseconds to human readable date in logfiles

2 votes
2 answers
6663 views
I have a log file with the following structure
1522693524403 entity1,sometext
1522693541466 entity2,sometext
1522693547273 entity1,sometext
...
Now I would like to replace the time from epoch milliseconds to DD.MM.YYYY HH:MM:SS in all of the log files with a bash command on a Debian System. I tried different solutions provided here and on other websites but it did not really work for me.
Asked by fastboot (57 rep)
Dec 5, 2020, 02:30 PM
Last activity: May 15, 2025, 11:29 AM