STDOUT prefix
Hi,
Quick question, I want to output all the STDOUT from a script to a log file . At the moment I run it using the standard "./scriptname >> /tmp/myfile" method.
But I also echo other scripts into this same file at the same time. Can I add a prefix in front of each line from "scriptname" so that I can destinguise what script has outputed what into /tmp/myfile?
Thanks!
|