You need to read the lines from the file into a variable and then use that variable as an argument to the cp command. For example, consider the file "numbers":
A simple shell script to read the values from this file and print the numbers is as follows:
exec < numbers # Replace "stdin" (i.e. the command line) with the file "numbers".
while read line # Read each line from the file
echo $line # Print the number that was read
For more information about shell scipting (in Bash), see the Advanced Bash-Scripting Guide
. In particular, chapters 11 and 20 are relevant.