Looking for something like this? Any ideas?
cmd | prepend "[ERRORS] "
[ERROR] line1 text
[ERROR] line2 text
[ERROR] line3 text
... etc
|
Looking for something like this? Any ideas?
| |||
|
feedback
|
has the advantage of only using bash builtins so fewer processes will be created/destroyed so it should be a touch faster than awk or sed. | |||||||||||
feedback
|
| |||||
feedback
|
|
I wanted a solution that handled stdout and stderr, so I wrote
Now I can just run | |||
|
feedback
|
|
With all due credit to @grawity, I'm submitting his comment as an answer, as it seems the best answer here to me.
| |||||||
feedback
|