title: launching vimdiff from diff output
body: <p>I am trying to diff two folders using diff and launch vimdiff for each difference from a shell script</p>
  
  <p>This is how I extracted filenames and made complete command using awk which I like to execute</p>
  
  <pre><code> $ diff -Bbqr oldfolder newfolder | grep differ | awk '{print "vimdiff " $2,$4}'
   vimdiff oldfolder/a.c newfolder/a.c 
   vimdiff oldfolder/b.c newfolder/b.c 
  </code></pre>
  
  <p>Now I tried </p>
  
  <pre><code>diff -Bbqr oldfolder newfolder | grep differ | awk '{print "vimdiff " $2,$4}' | bash 
  </code></pre>
  
  <p>it didn't work, gives warning that <code>Vim: Warning: Input is not from a terminal</code></p>
  
  <p>also tried <code>bash -c</code> like below</p>
  
  <pre><code>diff -Bbqr oldfolder newfolder | grep differ | awk '{print "vimdiff " $2,$4}' | bash -c 
  </code></pre>
  
  <p>but this gives error <code>bash: -c: option requires an argument</code></p>
  
  <p>I also tried </p>
  
  <pre><code>$(diff -Bbqr oldfolder newfolder | grep differ | awk '{print "vimdiff " $2,$4}')
  </code></pre>
  
  <p>it doesn't output at all. </p>
  
  <p>This is quite useful for any developer so I am hoping to find some answer</p>