I am using the 'tee' command in order to capture the results of a long bash command to a file.
Can the file I emit with tee somehow prefix each line with the timestamp of when the line was written? I'm looking for a solution in which each line would have a different date time value... not the same value prefixed on each line.
The reason I want this is that it would be very useful to know when each line was emitted later when I read through the file to understand where the slow areas were.