title: shell script to execute command multiple times reading values from input file
body: <p>I have a input file, input.txt, and I want to run a command which should read two values from input.txt. Let us assume source name and destination name should be read from input and same command to be iterated thousands times based on input.txt.</p>
  
  <p>Also the output of the command for each is to be stored in separate log. Is this possible with a singular input file or we need to use 2 files for source and destination? Request you to provide shell script to be used to achieve this as I am poor in shell scripting. I tried the below which is not working.</p>
  
  <pre><code>while read i j; do
    command $i $j
  done &gt; output.txt
  </code></pre>