I'm trying to iterate over every line in a file, where each line is a path I need to copy. I used the echo
command to print the paths and tried copying with the following command:
while read p; do
cp echo "$p" echo "$p1"
done <file_name.txt
The error message was:
cp: target ‘’ is not a directory
Is there any bash command that can be used for my purpose?