title: Bash renaming from path variable
body: <p>I'm doing a "Recycle bin" type script, I have it all done however if a file already exists where I try to restore the file I want it to let the user choose a new name for the file to be restored as, I have the full path the file was deleted from in variable $F1 I just dont know how I go about changing the file name here</p>
  
  <pre><code>#!/bin/bash
  
  TRASHCAN ="/home/alihassan/Desktop/Trashcan"
  cd $TRASHCAN
  F1=$( grep "$1" storage.txt )
  if [ -f $F1 ]
      then echo "File already exists at the restore location, please enter a new filename"
      read ANS
      mv "home/alihassan/Desktop/Trashcan/$1" "$F1/$    #ISSUE IS HERE
  else
      mv "/home/alihassan/Desktop/Trashcan/$1" "$F1"
  fi
  </code></pre>