title: Move/copy files/folder in linux/solaris using only bash built-ins
body: <p>There was a situation when somebody moved the whole rootdir into a subdir on a remote system, thus all the system tools like cp, mv, etc didn't work anymore. We had an active session though but couldn't find a way to copy/move the files back using only bash built-ins.</p>
  
  <p>Do somebody know of a way to achieve this?</p>
  
  <p>I even thought about copy the cp or mv binary in the currentdir with </p>
  
  <pre><code>while read -r; do echo $LINE; done
  </code></pre>
  
  <p>and then redirect this to a file, but it didn't work. Guess because of all the special non printable chars in a binary file that can't be copied/displayed using echo.</p>
  
  <p>thanks.</p>