I am writing a script using verbose mode, but I would like to set the output command prefix (mainly to make the output more enjoyable).
For example, a script:
pwd
hostname
This will produce the result:
pwd
/home/username
hostname
myawesomehost
But I need a conclusion (especially with a sign $):
$ pwd
/home/username
$ hostname
myawesomehost
Is there a way to set the prefix for verbose output as follows?
source
share