Greetings,
I'm running the perl file in the command prompt and capture the logs in the .log file.
say,
perl test.pl > test.log
I want to append the timestamp to the log file before and after the log data. Though test.log is dynamically created,i don't know how do to that.Also i don't want to modify all the scripts,which will return the time stamp along with log data.
Can anyone tell me, how to do this.Is there any commands available in the shell script itself?
Update : How can i get the duration of how much time taken by the 'test.pl' script ?
2006-01-30 Retitled by g0n, removed 'OT' marker.
Original title: 'OT Append the timestamp before and after the data in the logfile'