title: Verbose output of shell script
body: <p>I have a very simple shell script that looks as follows:</p>
  
  <pre><code>clear
  
  for i in -20 -19 -18 -17 -16 -15 -14 ... 18 19  
  do  
  echo "Nice value is $i"  
  nice -n $i ./app1   
  done  
  </code></pre>
  
  <p>Basically, I wanna run an application with all different priority values between -20 and 19.
  However, when executing this script it looks as follows:</p>
  
  <pre><code>Nice value is -20  
  15916233  
  Nice value is -19  
  5782142  
  ....  
  Nice value is 19  
  5731287  
  </code></pre>
  
  <p>But I would like some kind of verbose output, that is also printing the command on the terminal so that it looks like this</p>
  
  <pre><code>Nice value is -20  
  nice -n -20 ./app1    
  15916233  
  Nice value is -19  
  nice -n -19 ./app1   
  5782142  
  ....  
  Nice value is 19  
  nice -n 19 ./app1   
  5731287  
  </code></pre>
  
  <p>Is there a way to do that? Thank you!</p>