title: Copy entire content from a folder to another in shell script
body: <p>I'm trying every single code to copy all things inside a folder to another but i can't do it! I'm trying to use the code in my terminal emulator in my android device because i need that code in my application. This is the last code i use that doesn't work:</p>
  
  <pre><code>#!/bash/sh
  srcdir="/data/app"
  dstdir="/sdcard/prova1"
  
  for f in ${srcdir}/*.apk
  do
      cp $f $dstdir $dstfile
  done
  </code></pre>
  
  <p>and the terminal says: </p>
  
  <pre><code>: not found
  ' unespectedsyntax error: 'do
  </code></pre>
  
  <p>can anyone help me? These are the possibility that could be good:</p>
  
  <p>1) Copy all files in the /data/app folder to /sdcard/prova1</p>
  
  <p>2) Copy directly the folder app in prova1</p>
  
  <p>3) Use a java code that do one of these two things.. </p>
  
  <p>I have root so i can do this operation.</p>