I am trying to make a modular script. I have several scripts/commands which are called from a single script.
I want to prefix the output of each separate command.
My files are allcommands.sh / command1.sh / command2.sh
allcommands.sh runs the scripts command1.sh and command2.sh
I want to prefix each output of these two scripts like this:
[command1] file exists
[command1] file moved
[command2] file copied
[command2] file emptied