How to run a script and have it output nice logs for you in bash

It is standard when you are writing your script, to write errors to “Standard Error” ( STDERR ). Like so: echo “Unique ID and Error” >&2 Usually when you run a script it outputs both standard error and standard output to your terminal display. You can however redirect those to log files. If you want Read more about How to run a script and have it output nice logs for you in bash[…]