title: Bash Script to copy contents from one file to another
body: <p>I am trying to create a script where it takes even number of file names, and copy contents from one file to another. for eg: if 4 file names are provided then content of 1 gets copied to file 2 and content of file 3 gets copied to file 4. </p>
  
  <p>until now I could only think of..</p>
  
  <pre><code>if [ expr $# % 2 -ne 0 ]
  then
  echo: Please enter even number of filenames
  exit
  fi
  for file in $*
  do
  .....
  ....
  </code></pre>
  
  <p>Please advise me how to proceed with this script..Thanks a lot in advance..</p>