title: How to make my program take multiple std inputs and give multiple std outputs in return?
body: <p>I was able to write this program that takes as input a "file.txt" containing this type of strings ATCGTAATTC and gives as output a second file called "compl-file.txt" containing something like that CAATTACGAT. All of that works well, but I actually need this program to take many files as inputs and give many compl-files as outputs while applying all the processes.
  Thank you for your help !</p>
  
  <pre><code>#! /usr/bin/bash
  #
  ##create file called compl-*
  name=`echo $1 | sed -e 's/\(.*\)/compl-\1/'`
  touch $name 
  ##upside down
  VAR1=$(tac &lt; $1)
  echo "$VAR1" &gt; $name
  ##reverse
  VAR2=$(rev $name)
  echo "$VAR2" &gt; $name
  ##replace G/C C/G
  VAR3=$(sed -e 's/C/X/g; s/G/C/g; s/X/G/g' $name)
  echo "$VAR3" &gt; $name
  ##replace A/T T/A
  VAR4=$(sed -e 's/A/Y/g; s/T/A/g; s/Y/T/g' $name)
  echo "$VAR4" &gt; $name
  </code></pre>