:::: MENU ::::

Monthly Archives / July 2019

  • Jul 17 / 2019
  • 0
Linux

Add timestamp on each line of bash output

When analyzing the output of a bash script, it can be useful to prepend timestamp before each line to see how long it’s taking to do a specific action.

For this, you can use the ‘ts‘ command:

If the command ‘ts‘ is not available, you might need to install the package moreutils.

Question ? Contact