Prefix command output in a shell with timestamp
So I was writing this script that logged certain things to a file using a regular redirect. My script was running various commands that outputted a random amount of lines, all in random formats. I wanted to have a timestamp prefixing all of that, similar to what you get in logs written by syslog. I […]
Prefix command output in a shell with timestamp Read More »