title: How to swap filenames in Unix?
body: <p>Any way to do this quickly without using a temp variable? Is there a built in function?</p>
  
  <p>Edit: Thanks for the answers guys. Looks like I need to clarify my question but for the most part you guys assumed correctly: There are two files and the filenames names are reversed.</p>
  
  <ul>
  <li>File A has name B-name.file </li>
  <li>File B has name A-name.file</li>
  </ul>
  
  <p>I'd like for File A to be named A-name.file and File B to be named B-name.file.</p>
  
  <p>I agree, the situation doesn't happen often but it just happened to me and I wanted a quick fix.</p>