Convert existing timestamps in a text file (eg. a log file) into [r]elative format

ts

cat {{path/to/file}} | ts -r

click the source code to copy install ts on any operating system with command-not-found.com