I have to make a script that will prompt the user for a source file then a destination file and then copy the source to the destination. This is what I have so far:

Code:
#!/bin/bash

echo -n "Enter the name of the source file: "
read source

if [ -f $source ]; then

echo "The source file does not exist. No action taken."

else

echo -n "Enter the name of the destination file: "
read destination

cp $source $destination

fi
Please... help anyone? I'm normally a Java or higher level language programmer I don't know much about shell scripting...